By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,263 Members | 1,537 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,263 IT Pros & Developers. It's quick & easy.

Building all projects in solution

P: n/a
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.
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Stephen Ritchie" wrote:
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.

Jul 22 '05 #2

P: n/a
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.
"Bhavesh Patel" wrote:
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

"Stephen Ritchie" wrote:
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.

Jul 22 '05 #3

P: n/a
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

"Stephen Ritchie" wrote:
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.
"Bhavesh Patel" wrote:
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

"Stephen Ritchie" wrote:
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.

Jul 22 '05 #4

P: n/a
On 29 Jun 2005, Stephen Ritchie wrote:
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
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.