dotnet-core-uninstall list returns different information than dotnet --list-runtimes
- Dominant language
- C#
- Stars
- 774
- Forks
- 72
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.