如遇跨平台的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加载项目。
标签:macos,workload,xxx,installed,project,following,dotnet,workloads From: https://blog.51cto.com/JohnsonJu/6236740