cli-lab icon indicating copy to clipboard operation
cli-lab copied to clipboard

dotnet-core-uninstall list returns different information than dotnet --list-runtimes

Open blakeduffey opened this issue 2 years ago • 1 comments

Trying to remove END OF LIFE versions (which are flagged as a security finding)

The two commands return different values (meaning dotnet-core-uninstall cannot remove an older version)

PS C:\Program Files (x86)\dotnet-core-uninstall> dotnet --list-runtimes Microsoft.NETCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

While

PS C:\Program Files (x86)\dotnet-core-uninstall> .\dotnet-core-uninstall.exe list

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:

.NET Core Runtimes:

ASP.NET Core Runtimes:

.NET Core Runtime & Hosting Bundles:

Is there a way to use the uninstaller to remove all legacy versions?

blakeduffey avatar Oct 20 '23 20:10 blakeduffey

This looks like a duplicate of #223.

tonibony avatar Jan 31 '24 22:01 tonibony