microsoft / microsoft/vscode-dotnettools

[BUG] The .NET Core SDK cannot be located

Open
#2,157 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-sdk bug needs-more-info
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

Hi
When I open the Visual Studio I get the message:

The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info
'dotnet' is not recognized as an internal or external command,
operable program or batch file.

'dotnet' is not recognized as an internal or external command,
operable program or batch file.
. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.

Then there is an option to install .Net SDK, I installed it, but it didn;t help.
I will appreciate your help, a "dummy guide" if possible, I am a complete novice in coding, this is my first attempt at C#.

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported dotnet --info command and the C# Dev Kit SDK-detection path. Reproduce the failure with the affected Visual Studio Code and .NET SDK environment, then determine whether the extension can locate the SDK or needs clearer diagnostics. The issue does not name a repository file, test, or complete environment, so the expected fix is not yet defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.