【发布时间】:2019-02-10 10:10:14
【问题描述】:
最后一次 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>
到一些项目。不用找了。我很茫然,因为错误信息甚至没有告诉我是哪个项目。
【问题讨论】:
-
这里是相同的问题,相同的遗留项目,相同的 VS 版本。
-
TomTom - 你解决了吗?我现在也有同样的问题。
-
就像看起来一样消失了。请记住,我们现在是 15.8.6...
标签: visual-studio-2017 visual-studio-2017-build-tools