A command line tool for uninstalling versions of the .NET Core SDK, Runtime, ASP.NET Core Runtime, and Hosting Bundles.
The Microsoft .NET Core SDK Uninstall Tool (x86) is a command-line utility designed to facilitate the removal of specific versions of the .NET Core SDK, Runtime, ASP.NET Core Runtime, and Hosting Bundles from a system. This tool provides developers and administrators with precise control over their environment by enabling targeted cleanup operations.
Key Features:
Lists installed versions of .NET Core components for easy identification.
Supports selective uninstallation of specific SDKs, Runtimes, or Hosting Bundles.
Handles dependency management to avoid conflicts during removal.
Operates on Windows x86 systems.
Can be installed via winget for seamless integration into development workflows.
Audience & Benefit:
Ideal for system administrators, developers, and IT professionals managing .NET Core environments. This tool helps streamline component management by eliminating unwanted or outdated versions, reducing potential conflicts, and optimizing system performance.
README
Uninstall Tool: dotnet-core-uninstall
This repo contains the dotnet-core-uninstall tool, a command line tool for uninstalling versions of the .NET Core SDK, Runtime, ASP.NET Core Runtime, and Hosting Bundles. For more information about the use of this tool, see the docs here. To download the latest version of the tool, see the releases page.
Why isn’t the .NET Core Uninstall Tool a .NET Core Global Tool?
An early prototype of the .NET Core Uninstall Tool was a .NET Core Global Tool. Since .NET Core Global Tools are runtime-dependent applications they use a version of the .NET Core Runtime that is installed on the machine. The purpose of the tool is to uninstall arbitrary .NET Core SDKs and Runtimes, so may attempt to uninstall the version that’s running the current process. When this happened, we didn’t find a way to recover from the error and uninstall other SDKs and Runtimes. We saw this as particularly problematic because users might not be clear what runtimes are in SDKs that are being uninstalled or which runtime is currently being used.
Contributing
We welcome you to try things out, file issues, make feature requests and join us in design conversations.
Building the Repository
Run the build script at the root of the repo (build.sh or build.cmd) and provide a runtime identifier (for example, on windows run build /p:RID=win-x86)
.NET Foundation
The dotnet-core-uninstall tool is a .NET Foundation project. See the .NET home repo to find other .NET-related projects.