首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VS 15.8.2 broke构建工具-缺少RuntimeIdentifier

VS 15.8.2 broke构建工具-缺少RuntimeIdentifier
EN

Stack Overflow用户
提问于 2018-09-05 17:51:32
回答 21查看 57.9K关注 0票数 119

上一次的windows更新破坏了我们的整个构建链,我对它的原因感到有点不知所措。

我有一个遗留项目,这是一个VS 2017解决方案,有大量的项目(winform,基于web的夫妇,一些Webapi )。

在本地,事情运行得很完美。我可以直接构建它们。

在服务器上,proejct已经开始失败,错误是:

代码语言:javascript
复制
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'.

我已经添加了

代码语言:javascript
复制
<RuntimeIdentifiers>win</RuntimeIdentifiers>

多个项目。没有变化。我不知所措,因为错误消息甚至没有告诉我是哪个项目。

EN

Stack Overflow用户

发布于 2020-09-26 00:14:44

在我升级到VS到15.9.27之后,我遇到了同样的问题,其中一个单元测试项目无法编译,删除obj文件夹的解决方案对我有效

票数 0
EN
查看全部 21 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52182158

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档