Reputation: 41
I am trying to learn to program but I cant even use visual studio to do anything because when I type "dotnet new console" I keep getting the error: "It was not possible to find any installed .NET Core SDKs Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from: https://aka.ms/dotnet-download" I have already installed .NET Core SDKs and I have reinstalled it about 5 times, each trying something new like installing with vscode not open, with it open, rebooting my pc, checked forms and it does not work, This is my last option I can think of. Please help me fix this! I don't know if it would make a difference but I'm learning c#.
Upvotes: 1
Views: 2315
Reputation: 244
I encountered this issue when both versions 32-bit and 64-bit were installed.
This is how I fixed it: Open command prompt and run the command "where dotnet". If the output should show the 64-bit version on top of the 32-bit version (if you see x86), do the following (in Windows 10):
1.search for edit the environment variable in start menu search bar and click "Edit the environment variables"
Re-open the command prompt and re-run command "where dotnet" to make sure the the 64-bit version comes first in the output.
Upvotes: 3