Exclude a project from a multi-project solution build

  • Thread starter Thread starter B.
  • Start date Start date
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.
 
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.
 
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.
 
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
 
Back
Top