0

The error message

I am trying to use the command "dotnet new console" and follow a brackeys tutorial.

I have the following installed.

The ones I have installed

Maytham Fahmi
  • 31,138
  • 14
  • 118
  • 137
j0ke
  • 49
  • 1
  • 1
    Run both `dotnet --list-runtimes` and `dotnet --list-sdks`. Post your results. – gunr2171 May 13 '22 at 12:26
  • 3
    Welcome to Stack Overflow! Your question will probably be downvoted and possibly closed due to including screenshots instead of writing error as text/code snippet. Have a look at the Stack Overflow best practices for questions. Regarding your question: dotnet is most likely not part of the Windows $PATH variable. – citronas May 13 '22 at 12:27
  • @gunr2171 Microsoft.NETCore.App 3.1.16 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.16 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App] the dotnet --list-sdks doesnt return anything – j0ke May 13 '22 at 12:57
  • @citronas how do i fix that? – j0ke May 13 '22 at 12:58
  • Try downloading and installing sdk from the [site](https://dotnet.microsoft.com/en-us/download) again (_"Download .NET SDK x64"_ option.). Maybe reboot your machine. – Guru Stron May 13 '22 at 13:02
  • try this in your F:\Program path dotnet new globaljson and let me know if it helps – Maytham Fahmi May 13 '22 at 13:17

0 Answers0