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.

发布了209 篇原创文章 · 获赞 18 · 访问量 39万+

猜你喜欢

转载自blog.csdn.net/llrraa2010/article/details/105542163