Windows的最新更新中断了我们的整个构建链,而导致它的原因我有点不知所措。
我有一个遗留项目,它是VS 2017解决方案,其中包含大量项目(winform,基于夫妇的Web,仅某些Webapi)。
在本地,一切工作正常。我可以建立它们。
在服务器上,该过程已开始失败,错误是:
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>
到了多个项目。没变。我很茫然,因为错误消息甚至没有告诉我哪个项目。