You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dotnet-core-uninstall list shows incorrect results on Windows #437
Visual Studio 2026 (.NET for Web/Desktop workloads)
dotnet-core-uninstall version 1.7.661902
From Control Panel
.NET 9.0.14 Windows Server Hosting
.NET SDK 10.0.201 (arm64) from Visual Studio
.NET SDK 9.0.203 (arm64)
From dotnet-core-uninstall list output
This tool cannot uninstall versions of the runtime or SDK that are
- SDKs installed using Visual Studio 2019 Update 3 or later.
- SDKs and runtimes installed via zip/scripts.
- Runtimes installed with SDKs (these should be removed by removing that SDK).
The versions that can be uninstalled with this tool are:
.NET Core SDKs:
9.0.203 arm64 [Used by Visual Studio 2022. Specify individually or use —-force to remove]
.NET Core Runtimes:
ASP.NET Core Runtimes:
.NET Core Runtime & Hosting Bundles:
9.0.14
Windows Desktop Runtimes:
So, two issues:
.NET 10 SDK is missing (most critical here)
.NET 9 SDK is reported as used by VS 2022 (a minor one, and optional to fix)
I think the right output should be
This tool cannot uninstall versions of the runtime or SDK that are
- SDKs installed using Visual Studio 2019 Update 3 or later.
- SDKs and runtimes installed via zip/scripts.
- Runtimes installed with SDKs (these should be removed by removing that SDK).
The versions that can be uninstalled with this tool are:
.NET Core SDKs:
9.0.203 arm64 [Used by Visual Studio 2022. Specify individually or use —-force to remove]
10.0.201 arm64 [Used by Visual Studio 2026. Specify individually or use —-force to remove]
.NET Core Runtimes:
ASP.NET Core Runtimes:
.NET Core Runtime & Hosting Bundles:
9.0.14
Windows Desktop Runtimes:
The 10.0.201 build is actually installed by Visual studio 2026. The 9.0.203 one is just the only SDK on the box that VS 2022 will load. So the requirement of --force is correct for 203. For 10.0.201, there is no ability to force remove something that Visual Studio installed. We could potentially explore whether we should show it but have additional text that says we can't install it but at the moment, we only list the ones we can uninstall.
Activity
marcpopMSFT commentedon Mar 31, 2026
The 10.0.201 build is actually installed by Visual studio 2026. The 9.0.203 one is just the only SDK on the box that VS 2022 will load. So the requirement of --force is correct for 203. For 10.0.201, there is no ability to force remove something that Visual Studio installed. We could potentially explore whether we should show it but have additional text that says we can't install it but at the moment, we only list the ones we can uninstall.
CC @joeloff @NikolaMilosavljevic