.net-6.0 - 如何删除 Microsoft.NETCore.App 6.0.0-rc.2.21480.5
问题描述
我正在尝试删除 dot net 6 的预览版本。
如果我运行 dotnet --info 我会看到
.NET SDK (reflecting any global.json):
Version: 6.0.100
Commit: 9e8b04bbff
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100\
Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa
.NET SDKs installed:
6.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-rc.2.21480.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-rc.2.21501.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
当我运行 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:
6.0.100 x64 [Used by Visual Studio. Specify individually or use —-force to remove]
.NET Core Runtimes:
ASP.NET Core Runtimes:
.NET Core Runtime & Hosting Bundles:
它不显示预览版本,那么如何删除它们?
解决方案
我直接从 C:\Program Files\dotnet\shared\ 中删除了该文件夹,这似乎可以解决问题
推荐阅读
- java - OpenGL - 构造形状的困难
- arrays - 如何使用 Fortran 读取具有不同长度的数字和字符的格式化 ASCII STL 文件?
- python-3.x - PyInstaller 和 Nuitka 生成非常大的文件。如何减小尺寸?
- python - “ESC”键通过在 Visual Studio 中将变量更改为 False 来中断循环
- c++ - 将 std::string 转换为 PCWSTR
- c# - 跨会话的 MemoryCache
- amazon-ecs - ECS 是否支持 AWS NLB?
- java - EJB 核心合同和要求 - v3.1 (JSR-318 - 2009) 到 v3.2 (JSR-345 - 2013) 编程限制更改
- docker - 不管 --jobs 是什么,GNU Make 只使用 4 个线程
- ios - 一个 UITableView 单元格中的两个 UICollection 视图