• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

.NET could not fine any installed .NET Core SDKs after installing and restarting computer

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently, I've been wanting to learn C# more or even migrate to its language as it has mostly the same syntax as Java, so I tried yesterday to do so.

The problem is, I downloaded the installer (Runtime and SDK), and even restarted my computer after installation, but whenever I try to run the command dotnet new console, it outputs this:



What is the specific problem to this? is it the installer that is breaking this?

Here are problems that may or may not effect this:

Is it because I'm on a Bootcamp drive?
Do I need to install the 32bit installer even though I'm on a 64bit pc?
What is Arm64 vs x64? (I installed the x64 version)
Am I using an outdated visual studio code or terminal? (My VSC is version 1.55.2, checked in about)
Things I have done:

Installed the SDK separately
Copied/Pasted the binaries for the .NET 5.0 SDK
I used dotnet --info and came out with NO SDK
Here is what outputs when I run the command dotnet --info:


If anyone knows the problem, it would be very helpful! Thanks alot!

~ Pale_Gray
 
Saloon Keeper
Posts: 12878
279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pale Gray wrote:I downloaded the installer (Runtime and SDK)


You probably should have installed the SDK only.

Copied/Pasted the binaries for the .NET 5.0 SDK


What do you mean by this? To me it seems like this might have made matters worse maybe.

Anyway, uninstall all runtimes and the SDK, and make sure that your PATH environment variable doesn't contain any references to dotnet folders.

After you've removed all traces of dotnet, reinstall the SDK only, and then sign out of your OS user session and then sign back in (or just restart your system).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic