Uninstalling .NET SDK 8.0.300 left empty directory that caused "[MSB4236] The SDK 'Microsoft.NET.Sdk' specified could not be found."
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
I installed .NET SDK 8.0.205 and then 8.0.300 as well (on Windows). I then uninstalled 8.0.300 (due to https://github.com/dotnet/fsharp/issues/17161). `dotnet --info` then reported that SDK 8.0.205 was used as expected.
However, when I tried to open .NET projects in JetBrains Rider it failed to load them all with
> [MSB4236] The SDK 'Microsoft.NET.Sdk' specified could not be found.
It took me a while to figure out that this was because the directory `C:\Program Files\dotnet\sdk\8.0.300\Roslyn` still existed (with an empty `bincore` sub-directory in it, I believe). After I deleted that directory manually Rider loaded .NET projects successfully again.
I'm not sure to what extent this is Rider's fault, but the uninstaller should really delete the entire sdk\8.0.300 directory to avoid this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.