Skip to content

dotnet-core-uninstall list shows incorrect results on Windows #437

@lextm

Description

@lextm

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions