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#.
1 Answer
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"
- click "Environment Variables"
- look for "Path" entry under "System variables" list
- Select "Path" entry then click edit
- Move up the 64-bit entry of dotnet (looks similar to this "c:\Program Files\dotnet" to be on top of the other 32-bit dotnet (looks similar to this "c:\Program Files x(86)\dotnet"
- click Ok and close the window
Re-open the command prompt and re-run command "where dotnet" to make sure the the 64-bit version comes first in the output.
dotnet --infoin your question.where dotnet, to make sure which utility you ran.