The .NET Core SDK cannot be located
See original GitHub issueEnvironment data
dotnet --info
output:
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
Host (useful for support): Version: 3.0.0 Commit: 95a0a61858
.NET Core SDKs installed: No SDKs were found.
.NET Core runtimes installed: Microsoft.NETCore.App 3.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
VS Code version: 1.40
C# Extension version: 1.21.6
Steps to reproduce
Expected behavior
VScode find .net core sdk
Actual behavior
VScode can’t find .net core sdk but i installed it
Issue Analytics
- State:
- Created 4 years ago
- Comments:26 (4 by maintainers)
Top Results From Across the Web
The .NET Core SDK cannot be located. .NET Core debugging ...
The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and...
Read more >Troubleshooting: 'The .NET Core SDK cannot be located.' errors
Bring up System Properties: · Go to the Advanced settings · Click the button for 'Environment Variables' · Find 'Path' in either the...
Read more >Visual Studio Code Error: The .Net Core cannot be located - Ask
NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is...
Read more >Error during C# set up on Visual Studio: The .NET Core SDK ...
Error during C# set up on Visual Studio: The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make...
Read more >Unable to locate the .NET SDK: The Reasons - Hamid Mosalla
Navigate to C:\Program Files\dotnet\sdk and see if you can find folders associated with different sdk versions. If you can't find any folder ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Environment
3.1
1.21.9
Reference
OmniSharp/omnisharp-vscode Wiki
If you had Visual Studio Code open at the time you installed the .NET SDK, and you haven't restarted it, you should do so.
My Solution
Exit VSCode and open it…
Reason
I try not to exit vscode on my mac when it’s connected to a monitor because vscode has some GPU rendering problem in this circumstances. This habbit leads to the problems.
If there’s still people having this issue then try this:
now in my case I had 2
C:\Program Files (x86)\dotnet\
andC:\Program Files\dotnet\
if you actually go to the folders you’ll notice that there’s no sdk folder within theC:\Program Files (x86)\dotnet\
folder. So simply selectC:\Program Files\dotnet\
and click the “move up” button. Then click OK all the way out of there, now try and see if things are working…