Category Archives: dotnet

dotnet says the runtime and sdk exists on Linux but Rider and Visual Code thinks they don’t

As part of my Macbook Air using Linux Mint, I’ve been getting my development environments set up.

I got .NET 8 and .NET 9 installed so that running both of the following listed them

dotnet --list-sdks
dotnet --line-runtimes

But Visual Studio Code and Rider complain that .NET 8 and .NET 9 need to be installed.

It was this Stackoverflow post that had the answer.

I deleted the /etc/dotnet folder as per the previous link suggests and things started working.