卸载.NET Core SDK 7.0

Mic*_*l R 6 .net uninstallation .net-core

问)如何卸载.NET Core SDK 7.0.100-rc.2.22477.23

dotnet-core-uninstall由于出现消息,我尝试使用命令行工具卸载它,但没有成功[Cannot uninstall version 7.0.0 and above]

即使这个命令行也失败了:

michael@MichaelWorkBook dotnet-core-uninstall % ./dotnet-core-uninstall dry-run --sdk 7.0.100-rc.2.22477.23
Uninstallation not allowed. This tool cannot uninstall .NET Core SDKs with version 7.0.0 or above.
Run Code Online (Sandbox Code Playgroud)

这是我用来尝试卸载的.NET 卸载工具。

其他上下文:根据记忆,我可能已经通过 Visual Studio for Mac 安装了 .NET SDK 7.0。版本 7 候选发布版 2 可能会意外损害我编译 Azure 函数项目的能力。

dotnet-core-uninstall 列表的命令行使用情况的屏幕截图

小智 5

在 MacOS 上

激进的

删除文件夹usr/local/share/dotnet

微妙

version="7.0.100-rc.2.22477.23"
sudo rm -rf /usr/local/share/dotnet/sdk/$version
sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.NETCore.App/$version
sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.AspNetCore.All/$version
sudo rm -rf /usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/$version
sudo rm -rf /usr/local/share/dotnet/host/fxr/$version
Run Code Online (Sandbox Code Playgroud)