0
点赞
收藏
分享

微信扫一扫

To build this project, the following workloads must be installed: macos问题的处理


如遇跨平台的NETSDK1147错误的处理方法:
【报错提示】NETSDK1147 To build this project, the following workloads must be installed: macos
To install these workloads, run the following command: dotnet workload restore    KristofferStrube.Blazor.SVGEditor    Yourdisk:\Program Files\dotnet\sdk\xxx.xxx.xxx(SDK Version)\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets

【解决方法】

点击VS中“工具 - 命令行 - 开发者命令提示”,输入:
dotnet workload install macos

 运行完成。

再运行:dotnet workload restore
即可。

如提示“计算机有挂起的重新启动。安装将继续,但可能需要重新启动。”

退出所有程序,重启计算机,再进行VS加载项目。

举报

相关推荐

0 条评论