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

Re: Exclude a project from a multi-project solution build by Andy

Andy
Thu Sep 21 13:52:32 CDT 2006

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.


Re: Exclude a project from a multi-project solution build by Chris

Chris
Thu Sep 21 19:01:35 CDT 2006

"B." <guorongis@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



Re: Exclude a project from a multi-project solution build by Carl

Carl
Thu Sep 21 21:34:41 CDT 2006

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