Linux Centos下卸载删除.Net Core

dotnet --list-sdks and dotnet --list-runtimes 查看版本

version="2.2.402"
sudo rm -rf /usr/share/dotnet/sdk/$version
sudo rm -rf /usr/share/dotnet/shared/Microsoft.NETCore.App/$version
sudo rm -rf /usr/share/dotnet/shared/Microsoft.AspNetCore.All/$version
sudo rm -rf /usr/share/dotnet/shared/Microsoft.AspNetCore.App/$version
sudo rm -rf /usr/share/dotnet/host/fxr/$version

Remove the .NET Core runtime and SDK | Microsoft Docs 

https://docs.microsoft.com/zh-cn/dotnet/core/install/remove-runtime-sdk-versions?view=dotnet-plat-ext-2.1&tabs=windows&pivots=os-linux

posted @ 2020-05-04 22:21  跟着阿笨一起玩.NET  阅读(4185)  评论(0编辑  收藏  举报