Skip to content

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

Open

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:

Activity

  1. marcpopMSFT commented on Mar 31, 2026

    @marcpopMSFT
    Member

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions