[英]Visual Studio 2013 > New project > unspecified error (exception from hresult: 0x80004005 (e_fail))
[英]Visual Studio 2017: Project is out of date with error (0x80004005)
Windows 10 上的 Visual Studio 2017 Professional,包含 47 個面向 .NET 4.5.2 的項目的解決方案。
VS 總是在我的解決方案中重建許多項目,即使沒有改變並且是最新的。 我這條“信息量很大”的消息:
1>Project 'A' is not up to date. Error (0x80004005).
1>------ Build started: Project: A, Configuration: Debug Any CPU ------
2>Project 'B' is not up to date. Error (0x80004005).
2>------ Build started: Project: B, Configuration: Debug Any CPU ------
我在解決方案中看不到任何 .suo 文件。 解決方案中的一些項目是 C#,其他項目是 VB.NET。 然而,當我輸入這個時,我注意到只有 C# 項目會拋出 0x80004005 錯誤並強制重建。
請幫我解決這個奇怪的問題。
謝謝。
我找到了!
在 .csproj 文件中,有這個:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="12.0"**>
但是如果你改成這樣:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="Current"**>
[ ** 突出顯示我的]
謝謝!
我在加載時遇到了相同的錯誤 0x80004005。 所需要的只是運行構建 -> 干凈的代碼解決方案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.