Reputation: 447
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.
Upvotes: 0
Views: 8191
Reputation: 1911
I got the same error 0x80004005 on loading. And all that was needed was to run build -> clean code solution
Upvotes: 1
Reputation: 447
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!
Upvotes: 3
Reputation: 5986
I find the following link may describe the reason of throwing the error and the correspond solution.
You can try it from the link.
Upvotes: -2