Building all projects in solution

G

Guest

At the moment we have in Solution Explorer 12 projects and using the
configuration manager we ahve all dependancies and build order set correctly.

The problem is that when we do >Debug>Start (F5) then all projects are again
built even though no change has occurred in most of them since the last build.

Is there a way so that only changed projects are built, rather than
everything always getting built ?

Thank you in advance.
 
G

Guest

Hi Stephen

You have to take following steps to solve the problem.

On the Tools menu of VS.Net, choose Options.

In the Options dialog box, expand the Environment folder, and choose
Projects and Solutions.

Under Build and Run Options, select the option to Only build startup
projects and dependencies on Run.

When this option is selected, only the current startup project and its
dependencies are built when you choose one of the following commands:

choose Start (F5) from the Debug menu --OR-- choose Build Solution
(CTRL+SHIFT+b) from the Run menu.

Hope this will work for you.

Thanks,
Bhavesh Patel
 
G

Guest

Hi Bhavesh

The problem is that in some way everything is dependant from the startup
project onwards, so it still rebuilds all 12 projects.

I want it to only build the project I have just changed, or disable the
build on F5 and manually select "Build Project" as I change things.
 
G

Guest

Hi Stephen,

Remove all the dependecies from the project you are working(let say A) than
add(in / Bin directory) dll of all the projects on which A is
dependent;simply copying dll from other project to A.Doing so your project
will get necessary references of the dependent project.Now compile the
project only A will be complied.

I know that this is not an ideal solution so please add the dependancies
when you realese the solution.

Thanks,
Bhavesh Patel
 
B

Burkhard Perkens-Golomb

At the moment we have in Solution Explorer 12 projects and using the
configuration manager we ahve all dependancies and build order set
correctly.

The problem is that when we do >Debug>Start (F5) then all projects
are again built even though no change has occurred in most of them
since the last build.

Is there a way so that only changed projects are built, rather than
everything always getting built ?

Look at the build option "Incremental build" of every project of your
solution (project properties -> configuration properties ->
advanced). If this option is set to "False", the project and hence
every dependent project is built every time (i.e. regardless wether
you've changed anything or not). If set to true only changed projects
are built.

Burkhard
 

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