EnvDTE.SolutionBuild.Build only builds the startup project [reopen of two old bugs with better reproduce steps] - by JWeibler

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 320688 Comments
Status Closed Workarounds
Type Bug Repros 5
Opened 1/2/2008 2:47:55 AM
Access Restriction Public


Please reopen bugs 106159 and 216699.
I've found the reason why you can't reproduce it - see "Steps to Reproduce".
These old bugs are still in Visual Studio 2008.
Sign in to post a comment.
Posted by GT_MSDN on 8/26/2011 at 12:50 AM
This error occurs also in VS2010
Posted by spongman on 5/9/2011 at 4:54 PM
this sucks, SolutionBuild.Build() doesn't build the solution, and SolutionBuild.BuildProject() doesn't use the correct configuration! :(
Posted by kshaban on 8/25/2008 at 2:55 PM
Hi Ken,

The issue with both Solution.Build and BuildProject not building dependent projects is quite troubling.

Especially given the fact the same behavior is exhibited from even calling Vs services directly.

As a note with VS2003 the build behavior was correct.


Posted by Nels P. Olsen on 6/19/2008 at 1:46 PM
I agree with Carlos. This has nothing to do with "Run".

There appears to be no workaround. Even if I programatically set HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<Version>\General\BuildStartupsOnlyOnRun in the registry just before I want to do the solution build (after Visual Studio is open), it does not get picked up.
Posted by Carlos J. Quintero on 2/29/2008 at 12:26 AM
Hi Ken,

Your explanation doesn't make sense because nobody is talking about "Run" here, we are talking about "Build". If I request programmatically SolutionBuild.Build, I expect the whole solution to be built. If I request programmatically to run the solution, you can honor that setting.


Carlos Quintero
Posted by Microsoft on 1/31/2008 at 5:29 PM
Hi Jtb - thanks for posting this issue on Microsoft Connect.

The behavior you describe is "By Design" - DTE follows the Tools/Options settings. You may like to consider using SolutionBuild.BuildProject() to build a specific project.

Please reactive this bug if you have further issues with this.

Ken Watson - Visual Studio Platform
Posted by Microsoft on 1/2/2008 at 6:21 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team
Posted by Microsoft on 1/2/2008 at 6:13 PM
Thank you for your feedback. We are currently investigating. The investigation process normally takes 7-14 days. If this issue is urgent, please contact support directly (see http://support.microsoft.com).

If at any time your issue is closed unsatisfactorily, you may edit your issue via Connect and change the status to “Active.”

Thank you,
Visual Studio Product Team