最近的 Windows 更新打破了我们的整个构建链,我有点不知道是什么原因造成的。
我有一个遗留的项目,是一个 VS 2017解决方案与大量的项目(winform,夫妇基于网络,一些 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>
很多项目。没有变化。我不知所措,因为错误消息甚至没有告诉我是哪个项目。