Ed Swangren
Ed Swangren

Reputation: 124722

MSBuild Silently Skipping One Project (out of many in my sln)

About to lose my mind with this one... A solution build when run via MSBuild is silently failing to build one of many projects in the solution.

The build doesn't fail, it simply never attempts to build it at all (ascertained via the log files MSBuild and devenv output). This is a VS2010 solution file. Let's call the problem project Project X. What I know:

I have poured over the project file time and time again. All it really does is launch devenv like so:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Devenv.com" "MySolution.sln" /build "Release|Win32"

Again, if I use that exact same command in a prompt Project X is built. I have enabled diagnostic level logging in MSBuild to no avail. I'm at a loss at this point, any help will be greatly appreciated.

Upvotes: 7

Views: 957

Answers (2)

gelin
gelin

Reputation: 111

I've removed ProjectSection(ProjectDependencies) = postProject from the Project which caused the problem in the sln file. This helped.

Upvotes: 1

Brian Knight
Brian Knight

Reputation: 5041

This may be a shot in the dark - but I've had this issue before and have found that unloading the offending project and reloading it back into the solution does the trick. I have never determined why it happens, nor had anyone else explain it to me, but doing this has solved the issue two or three times for me on different solutions.

Upvotes: 2

Related Questions