上一次的windows更新破坏了我们的整个构建链,我对它的原因感到有点不知所措。
我有一个遗留项目,这是一个VS 2017解决方案,有大量的项目(winform,基于web的夫妇,一些Webapi )。
在本地,事情运行得很完美。我可以直接构建它们。
在服务器上,proejct已经开始失败,错误是:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): Error : Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'win' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): Error : Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'win' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): Error : Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'win' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore.
Process 'msbuild.exe' exited with code '1'.我已经添加了
<RuntimeIdentifiers>win</RuntimeIdentifiers>多个项目。没有变化。我不知所措,因为错误消息甚至没有告诉我是哪个项目。
发布于 2020-09-26 00:14:44
在我升级到VS到15.9.27之后,我遇到了同样的问题,其中一个单元测试项目无法编译,删除obj文件夹的解决方案对我有效
https://stackoverflow.com/questions/52182158
复制相似问题