dotnet / dotnet/cli-lab

dotnet-core-uninstall list shows incorrect results on Windows

Open
#437 1 comment 0 reactions 0 assignees View on GitHub
Area-Uninstall-Tool
Dominant language
C#
Stars
774
Forks
72
Avg merge
1d 23h
Merged PRs (30d)
2

Description

## Environment

- Windows 11 ARM64 (10.0.26100 Build 26100)
- Visual Studio 2022 (VC++ only)
- Visual Studio 2026 (.NET for Web/Desktop workloads)
- dotnet-core-uninstall version 1.7.661902

## From Control Panel

Image

- .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:
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.