Exclude a project from a multi-project solution build

B

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.
 
A

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.
 
C

Chris Mullins

B. said:
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.
 
C

Carl Daniel [VC++ MVP]

Andy said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top