The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Cor

https://github.com/OmniSharp/omnisharp-vscode/wiki/Troubleshooting:-‘The-.NET-Core-SDK-cannot-be-located.’-errors
https://github.com/OmniSharp/omnisharp-vscode/wiki/Troubleshooting:-‘The-.NET-Core-SDK-cannot-be-located.’-errors

When I open my vs code program I get this message: The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.

First Make sure the .NET Core SDK is installed and is on the path.
Start a command prompt:
Hit WinKey+R to bring up the Windows run dialog
Type in cmd.exe
When the command prompt starts, type in where.exe dotnet.
If the result of running where.exe is that a path to dotnet.exe is printed (example: C:\Program Files\dotnet\dotnet.exe) then the .NET SDK has successfully added itself to the Windows Path.

restart your computer. Everything would be fine.

你可能感兴趣的:(C#)