gpt4 book ai didi

visual-studio-2017 - VS 15.8.2 破坏了构建工具 - 缺少 RuntimeIdentifier

转载 作者:行者123 更新时间:2023-12-03 06:20:34 27 4
gpt4 key购买 nike

最后一次 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>

一些项目。不用找了。我很茫然,因为错误消息甚至没有告诉我哪个项目。

最佳答案

在尝试构建之前的某个时刻,您需要删除 obj 文件夹。不止一个人展示了这一点来解决问题。

https://developercommunity.visualstudio.com/content/problem/312180/projects-fail-to-build-in-1580-due-to-errors-from.html

关于visual-studio-2017 - VS 15.8.2 破坏了构建工具 - 缺少 RuntimeIdentifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52182158/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com