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

  1. Just simply close your VS Code app. It seems the error is produced because you are installing .NET Core SDK when your VS Code is opened.
  2. After closing it, re-install the .NET Core SDK.
  3. You must be can use it now.

It worked for me.


In my case it helped just to quit VSCode and re-open it (no need to re-install the .NET Core SDK) and the message you mentioned is gone.


my solution to this issue is: 1-you must uninstall all of the services belong to Visual Studio(not Vs Code) 2-uninstall VS Code and folder "AppData\Local\Programs\Microsoft VS Code" 3-download new dotnet core SDK and install vs code I hope it's done for you