上次的 Windows 更新破坏了我们的整个构建链,我不知道是什么原因造成的。
我有一个遗留项目,它是一个 VS 2017 dolution,包含大量项目(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>
到多个项目。没变。我很茫然,因为错误信息甚至没有告诉我是哪个项目。