dotnet / website-feedback

This repo is for dot.net feedback including get started tutorial issues from the site.
MIT License
0 stars 1 forks source link

The term "dotnet" is not recognized #203

Closed NguyenHuy2509 closed 13 hours ago

NguyenHuy2509 commented 1 month ago

URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/install

Operating system

windows

More information about your system

The operating system version is Windows 10 The architecture is x64

Description

I don't know how to fix this error, I have tried many times and no different results Extension_ C# Dev Kit - Visual Studio Code 31_7_2024 10_38_25 AM

dotnet --info

dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

mairaw commented 1 month ago

I'm sorry to hear you're having issues running the dotnet command.

Can you confirm that you installed the .NET SDK as instructed in step #1? If so, have you tried restarting VS Code? And can you check if you can run the command on a standalone PowerShell or command prompt window outside of VS Code? If it works outside VS Code, try restarting your computer.

/cc @webreidi

webreidi commented 1 month ago

@NguyenHuy2509 try Ctrl+Shift+P and type "install" and select ".NET: Install New .NET SDK" this will bring up a window that will give you the option to install the latest .NET SDK. Click on the big blue button. This will install the latest version of the SDK onto your system. Once that is done, you might need to reload VS Code again to get everything to sync up. You can do this by Ctrl+Shift+P and then type "Reload". Select "Developer: Reload Window". Then bring back up the terminal and try out your dotnet --info command.

Image

github-actions[bot] commented 3 days ago

This issue is stale because there has been no response to a request for more information for 7 days.

github-actions[bot] commented 13 hours ago

This issue was closed because there was no response to a request for more information for 10 days.