dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.66k stars 1.06k forks source link

Dotnet New isnt working #22771

Open AGrimmFate opened 2 years ago

AGrimmFate commented 2 years ago

When I try using dotnet new console its just not working.

This is the error that follows: 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

I have installed and repaired it many times now, also I am very new, so explain it to me like I just started, because I did.

KalleOlaviNiemitalo commented 2 years ago

Have you been keeping the same console open all the time? Try closing the window and opening a new one so that it picks up the new value of the PATH environment variable.

If you are using Windows Terminal, I think just closing the tab will not suffice.

AGrimmFate commented 2 years ago

Have you been keeping the same console open all the time? Try closing the window and opening a new one so that it picks up the new value of the PATH environment variable.

If you are using Windows Terminal, I think just closing the tab will not suffice.

I have restarted my computer serval times, and to no avail, even now, I have closed and reopped VS code, still its giving the same old error

marcpopMSFT commented 2 years ago

Can you provide the output of dotnet --info

dsplaisted commented 2 years ago

Is there anything installed in C:\Program Files\dotnet or C:\Program Files (x86)\dotnet? (Probably you don't want the x86 version).

What is the value of your PATH environment variable?