Home All Groups Group Topic Archive Search About

Exclude a project from a multi-project solution build

Author
21 Sep 2006 5:50 PM
B.
I have a solution which has multi projects, how can I exclude one
project from build when I click bulid or rebuild solution? Thanks.

Author
21 Sep 2006 6:52 PM
Andy
Rebuild Solution/Build Solution is a global override that forces VS.NET
to rebuild everything; you cannot cancel this behavior.

Instead, assign the dependancies on all your other projects to force
only the particular projects you wish to be built in your solution as a
group when you build only a selected project.

For each project, goto the VS.NET main menubar and select:
project->project dependancies and project->project build order

Checkmark the listed projects you want to have built when you build a
particular project - do not checkmark the project you wish to exclude.

After this, whenever you build a project in the solution, only the
projects you have checkmarked will be built.
Author
22 Sep 2006 2:34 AM
Carl Daniel [VC++ MVP]
Andy wrote:
> Rebuild Solution/Build Solution is a global override that forces
> VS.NET to rebuild everything; you cannot cancel this behavior.

Not so.  Go to Build|Configuration Manager... from the menu and you can
disable individual projects based on the solution configuration (e.g. so
some projects build in debug builds but not in release builds).

-cd
Author
22 Sep 2006 12:01 AM
Chris Mullins
"B." <guoron***@gmail.com> wrote in message

>I have a solution which has multi projects, how can I exclude one
> project from build when I click bulid or rebuild solution? Thanks.


Right Click on the Solution and go to the configuration manager.

Uncheck the project from the list of projects to build.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins

AddThis Social Bookmark Button