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.