dotnet / dotnet/vscode-dotnet-runtime

DotNet not installed or not in Path

Open
#1,424 3 comments 0 reactions 0 assignees View on GitHub
cause:missing-download needs more info
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

# Describe the bug

After installing the C# Dev Kit extension, I was prompted to install the .NET SDK. I accepted the prompt and was taken to the SDK download site in my browser. I downloaded and installed the SDK, then trued the `.NET: New Project` command in VS Code.

## **Please attach log file(s) here if you have any:**

Please attach the log file located at c:\Users\ME\AppData\Roaming\Code\logs\20230928T195451\window1\exthost\ms-dotnettools.vscode-dotnet-runtime\DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695951780134.txt. Note that this file may contain personal data:

### Attached Logs

1. [DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695951780134.txt](https://github.com/dotnet/vscode-dotnet-runtime/files/12755269/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695951780134.txt)

2. [DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695951413899.txt](https://github.com/dotnet/vscode-dotnet-runtime/files/12755281/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695951413899.txt)

3. [DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695925487084.txt](https://github.com/dotnet/vscode-dotnet-runtime/files/12755303/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1695925487084.txt)

**Extension Version:** 0.4.10

## Other Info:

### Errors trying to create new project
```
Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
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.

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.
Dotnet path: c:\Users\ME\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\7.0.11~x64\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
waiting for named pipe information from server...
[Error - 3:44:59 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Named pipe information not received from server.
at Function. (c:\Users\ME\.vscode\extensions\ms-dotnettools.csharp-2.4.4-win32-x64\dist\extension.js:2:1441424)
at Generator.next ()
at s (c:\Users\ME\.vscode\extensions\ms-dotnettools.csharp-2.4.4-win32-x64\dist\extension.js:2:1431992)
[stdout] {"pipeName":"\\\\.\\pipe\\9ed1e2ed-7440-4d74-8324-01dc3e6cc914"}
received named pipe information from server
```

**Reproduction Steps**

1. Run `.NET: New project...` command from command palette.

**Expected behavior**

I don't know, I have just installed the extension so I have never seen it working. I guess it should have created a folder/file structure for a C# project.

**Exceptions & Errors (if any)**

1. Posted above under **Other Info: Errors trying to create new project**

**Further technical details**
- Your VSCode Version: **_1.88.2_**

- The version of the extension that's on your machine: **_0.4.10_**

- Your operating system details: **_Windows 10 Pro v10.0.19045_**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.