msb307命令setlocal_记录VS2019生成项目提示MSB307命令dotnet paket restore已退出,代码为1....

今天工作中遇到了VS生成MaterialDesign项目代码时,VS提示

.NetCore3.1 Build error in azure function project, Metadata generation failed. Exit code -2147450743 Error, Failed to initialize CoreCLR HRESULT: 0x80070057

VS报错图片如下。

解决方案

链接地址:

https://developercommunity.visualstudio.com/content/problem/953931/netcore31-build-error-in-azure-function-project-me.html

解决的方法:

I found the issue, it was because the "The Program worked in earlier versions of Windows but won't install or run now" option was set. This check box is in Program Compatibility Troubleshooter of devenv.exe in \Microsoft Visual Studio\2019\Professional\Common7\IDE folder.

大概意思就是你在VS的devenv.exe(VS运行程序。桌面快捷方式,打开所在文件夹就可找到),疑难解答中勾选了在旧版本下面图片的选项,取消勾选保存设置就能解决问题。

你可能感兴趣的:(msb307命令setlocal_记录VS2019生成项目提示MSB307命令dotnet paket restore已退出,代码为1....)