microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
230 stars 13 forks source link

[BUG] <title> Cannot create new project #1396

Closed uno2112 closed 3 weeks ago

uno2112 commented 2 months ago

Describe the Issue

When I try to create a new project, I get the error message "No installed .NET SDK was found on the computer." If it is installed, make sure it can be found through the PATH environment variable. C# Dev Kit does not work without a supported version of SDK. After installing the SDK, you need to restart the VS Code session or the computer. " When i try to install the SDK it says hat its already installed

Steps To Reproduce

No response

Expected Behavior

New project tab opens

Environment Information

No response

smitpatel commented 2 months ago

Can you run dotnet --info command in terminal window in VS code and share output of it? This error happens when we are unable to find the dotnet on path variable. Even if .NET SDK is installed but if it is not on path, C# dev kit won't function correctly.

uno2112 commented 2 months ago

PS C:\Users\edwar> dotnet --info

global.json file: Not found

Host: Version: 6.0.10 Architecture: x86 Commit: 5a400c212a

.NET SDKs installed: No SDKs were found.

.NET runtimes installed: Microsoft.NETCore.App 5.0.10 [C:\Program Files (x86)\dotnet\shared\ Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.10 [C:\Program Files (x86)\dotnet\shared\ Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.10 [C:\Program Files (x86)\dotnet\shared\ Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files (x86)\dotnet\shared\ Microsoft.WindowsDesktop.App]

Download .NET: https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info PS C:\Users\edwar>

On Mon, Aug 26, 2024 at 3:30 PM Smit Patel @.***> wrote:

Can you run dotnet --info command in terminal window in VS code and share output of it? This error happens when we are unable to find the dotnet on path variable. Even if .NET SDK is installed but if it is not on path, C# dev kit won't function correctly.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-dotnettools/issues/1396#issuecomment-2310923056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVLLG42PYDLH2DPS3GE3NHLZTN63RAVCNFSM6AAAAABNDEKXAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQHEZDGMBVGY . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 2 months ago

@smitpatel, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

smitpatel commented 2 months ago

@uno2112 - As output says, there are no SDK installed on the machine. You only have .NET runtime installed. Please download and install .NET SDK and try again.

smitpatel commented 3 weeks ago

Closing as requested information not provided and we are not able to investigate further.