Reputation: 41
I'm trying to learn C# Code but I keep getting this error saying Unable to find any installed .NET Core SDKs issue, no matter what I try.
I've re-installed .Net many times, and made sure it was the latest version, but I keep getting this error.
I installed dotnet from https://aka.ms/dotnet-download, and made sure that it is the correct one. My dotnet core does indeed exist in C:\Program Files\dotnet.
I'm trying to run this command on visual studio code in the terminal window in order to code C#
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
Upvotes: 3
Views: 2093
Reputation: 182
I had the exact same problem. Tried an incredible amount of updates, installing mono-devel, mono-complete, changing project files and much more.
In the end the first comment to your question contained the answer for me on Ubuntu. And I just wanted to share it for anyone that might miss the comment.
Simply went to this link as said above:
https://dotnet.microsoft.com/download
Navigated to Ubuntu 20.10:
https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2010-
Executed the scripts, closed and restarted code. Problem solved.
Hat tip to @Nonik
Upvotes: 1