Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. If I installed and even uninstalled the .NET core SDK and reinstalled it, there were several ways to change the external terminal to Power Shell, but no changes. Another problem I have when I click on the terminal is this message: The terminal shell path "; C: \ Program Files \ dotnet" does not exist

If my .NET is on the same path and persists. Please tell me how can I fix my problem?

Visual studio code : version 1.42.1(x64) .NET core SDK : version 3.1.101(x64)

And I've tried these .NET core SDK versions: version 3.0.100(x64) , version 2.2.207(x64)

like image 386
elnaz jangi Avatar asked Mar 16 '20 20:03

elnaz jangi


People also ask

Where is .NET SDK located?

NET are installed to the normal C:\Program Files\dotnet\ folder. However, when you install the x64 version of . NET 6 SDK, it's installed to the C:\Program Files\dotnet\x64\ folder.

How do I debug in .NET core?

Open the Debug view by selecting the Debugging icon on the left side menu. Select the green arrow at the top of the pane, next to . NET Core Launch (console). Other ways to start the program in debugging mode are by pressing F5 or choosing Run > Start Debugging from the menu.

What is .NET Core SDK?

NET SDK is a set of libraries and tools that allow developers to create . NET applications and libraries. It contains the following components that are used to build and run applications: The . NET CLI.


Video Answer


1 Answers

  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.

like image 160
Bonifacius Sarumpaet Avatar answered Sep 18 '22 14:09

Bonifacius Sarumpaet