-
Notifications
You must be signed in to change notification settings - Fork 720
Troubleshooting: 'The .NET Core SDK cannot be located.' errors
This page contains more information about the error:
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.
What this error means is that this extension ran the command dotnet
and dotnet
was NOT found on the PATH
within the extension's process.
If you don't have the .NET Core SDK installed, fixing this error is usually simple enough: visit https://dot.net/core-sdk-vscode to download the .NET Core SDK.
If you do have the .NET Core SDK installed, then this means that the directory containing dotnet
(Linux and macOS) or dotnet.exe
(Windows) is not on your PATH
, at least in this extension's process. The rest of this page will provide advice on understanding why.
Before we get to a list of troubleshooting steps, lets first enumerate a few known reasons why this error happens:
- If you just installed the .NET SDK --
- 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.
- On Windows, on some machines, environment variable changes don't immediately take effect. Restart your computer to see if that resolves this problem.
- If the .NET SDK was installed through Linux snap - see Linux snap instructions
TODO
The first step in troubleshooting this problem is to see if this problem also happens is a command prompt:
- Start a command prompt:
- Hit
WinKey+R
to bring up the Windows run dialog - Type in
cmd.exe
- Hit
- When the command prompt starts, type in
where.exe dotnet
.
TODO
TODO
Configuration
- Configuring Snap installs of dotnet-sdk
- Configuring Arch Linux for Unity development
- Configuring Arch Linux for Razor development
- Installing the .NET Core Debugger on Arch Linux
Debugger
- Overview
- launch.json Help
- Feature List
- Enable Logging
- Portable PDBs
- Troubleshoot Breakpoints
- Attaching to remote processes
- Remote Debugging On Linux-Arm
- Windows Subsystem for Linux
- Diagnosting 'Debug adapter process has terminated unexpectedly'
- Testing libicu compatibility on Linux
- Debugging into the .NET Runtime itself
- Debugging x64 processes on an arm64 computer
Documentation
- Change Log
- Branches and Releases
- Installing Beta Releases
- Installing without internet connectivity
- Linux Support
- Run/Debug Unit Tests
- Troubleshooting: 'The .NET Core SDK cannot be located.' errors
Developer Guide