簡體   English   中英

Visual Studio 2017:項目已過期並出現錯誤 (0x80004005)

[英]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。 所需要的只是運行構建 -> 干凈的代碼解決方案

我發現以下鏈接可能描述了拋出錯誤的原因和相應的解決方案。

當您嘗試啟動基於 Windows XP 的計算機時,您可能會收到錯誤代碼 0x80004005 或其他錯誤代碼

您可以從鏈接中嘗試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM