当前位置: 首页 > news >正文

macOS卸载.net core 8.0


title: macOS卸载.net core 8.0
date: 2024-08-07 00:27:50
tags: 解决办法


用官方的卸载工具:

说明页面

https://learn.microsoft.com/zh-cn/dotnet/core/additional-tools/uninstall-tool?tabs=macos

源代码页面

https://github.com/dotnet/cli-lab

下载页面

https://github.com/dotnet/cli-lab/releases/tag/1.7.521001

下载dotnet-core-uninstall.tar并解压缩到文件夹中,比如temp

打开终端,导航到该文件夹

执行:

./dotnet-core-uninstall -h查看该工具所有命令

./dotnet-core-uninstall list查看安装的所有.net版本

输出:

xxx@MacBook-Pro temp % ./dotnet-core-uninstall listThis tool cannot uninstall versions of the runtime or SDK that are installed using zip/scripts. The versions that can be uninstalled with this tool are:.NET Core SDKs:8.0.202  (arm64)  [Used by Visual Studio for Mac. Specify individually or use —-force to remove].NET Core Runtimes:8.0.3  (arm64)  [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]

然后执行

./dotnet-core-uninstall dry-run 8.0.3 --runtime

./dotnet-core-uninstall dry-run 8.0.202 --sdk

进行试运行,版本号要和list输出的一致

提示可以删除的话,执行以下删除命令,版本号依旧要一致:

前面加sudo获取最大权限

sudo ./dotnet-core-uninstall remove 8.0.202 --sdk

sudo ./dotnet-core-uninstall remove 8.0.3 --runtime

http://www.dtcms.com/a/309268.html

相关文章:

  • HarmonyOS】鸿蒙应用开发中常用的三方库介绍和使用示例
  • 代码随想录算法训练营第三十八天
  • NLP 和 LLM 区别、对比 和关系
  • MT Photos图库部署详解:Docker搭建+贝锐蒲公英异地组网远程访问
  • 卸油作业安全设施漏检率↓76%!陌讯多模态融合算法实战解析
  • [AI8051U入门第十二步]W5500-Modbus TCP从机
  • 浏览器【详解】内置Observer(共五种,用于前端监控、图片懒加载、无限滚动、响应式布局、生成安全报告等)
  • 算法26. 删除有序数组中的重复项
  • 宝塔网站如何禁止使用IP访问
  • Shell脚本批量检测IP的443端口联通性
  • ai项目多智能体
  • 【从0开始学习Java | 第11篇】String、StringBuilder与StringBuffer
  • 微信小程序转Vue2组件智能提示词
  • 隧道安全监测哪种方式好?精选方案与自动化监测来对比!
  • 11.Layout-Pinia优化重复请求
  • C++赋值运算符重载
  • PHP Zip 文件操作详解
  • 汽车供应链PPAP自动化审核指南:如何用AI实现规则精准匹配与文件智能校验
  • MyBatis核心
  • MySQL——视图
  • C++对象访问有访问权限是不是在ide里有效
  • StarRocks vs. Trino
  • JavaWeb(苍穹外卖)--学习笔记16(定时任务工具Spring Task,Cron表达式)
  • RAGFLOW~Enable RAPTOR
  • 【云计算】云主机的亲和性策略(二):集群节点组
  • [ java 网络 ] TPC与UDP协议
  • 微波(Microwave)与毫米波(Millimeter wave)简介
  • 动态域名解析(DDNS)到底有什么用?
  • OSPF综合大实验
  • 下次接好运~