简体   繁体   中英

Visual Studio 2017: Project is out of date with error (0x80004005)

Visual Studio 2017 Professional on Windows 10, solution with 47 projects targeting .NET 4.5.2.

VS always rebuilds many projects in my solution even if unchanged and up to date. I this "very informative" message:

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 ------

I cannot see any .suo files in the solution. Some projects in the solution are C# and others are VB.NET. However, as I was typing this, I notice that it is the C# projects only that throw the 0x80004005 error and compel rebuild.

Please help me solve this weird problem.

Thanks.

I found it!

In the .csproj file, there was this:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="12.0"**>

But if you change it to this:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="Current"**>

[ ** Highlighting mine]

Thanks!

I got the same error 0x80004005 on loading. And all that was needed was to run build -> clean code solution

I find the following link may describe the reason of throwing the error and the correspond solution.

You may receive error code 0x80004005 or other error codes when you try to start a Windows XP-based computer

You can try it from the link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM