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.
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.
I've removed ProjectSection(ProjectDependencies) = postProject
from the Project
which caused the problem in the sln file. This helped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With