Search

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

Closed
as By Design Help for as By Design

1
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 320688
Opened: 1/2/2008 2:47:55 AM
Access Restriction: Public
0
Workaround(s)
3
User(s) can reproduce this bug
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.
Details (expand)
Product Language
English

Version

Visual Studio 2008 (All Products and Editions)
Operating System
Windows Vista
Operating System Language
English (US)
Steps to Reproduce
The important info to reproduce the problem is to change a option in Visual Studio:
Tools - Options - Projects and Solutions - Build and Run:
Check "Only build startup projects and dependencies on Run"

For additional steps please see bug 106159 and 216699.
Actual Results
EnvDTE.SolutionBuild.Build honors the "only build startup[..]"
Expected Results
EnvDTE.SolutionBuild.Build should build the whole solution
TAP Code (if applicable)
 
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
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
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/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.

thanks,
Ken Watson - Visual Studio Platform
Posted by MVP CarlosQ 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.

Thanks,

Carlos Quintero
MVP
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 kshaban1 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.

Thanks,

Kavan