PC Review


Reply
Thread Tools Rate Thread

Building all projects in solution

 
 
=?Utf-8?B?U3RlcGhlbiBSaXRjaGll?=
Guest
Posts: n/a
 
      29th Jun 2005
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmhhdmVzaCBQYXRlbA==?=
Guest
Posts: n/a
 
      29th Jun 2005
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.

 
Reply With Quote
 
=?Utf-8?B?U3RlcGhlbiBSaXRjaGll?=
Guest
Posts: n/a
 
      29th Jun 2005
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.

 
Reply With Quote
 
=?Utf-8?B?QmhhdmVzaCBQYXRlbA==?=
Guest
Posts: n/a
 
      2nd Jul 2005
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.

 
Reply With Quote
 
Burkhard Perkens-Golomb
Guest
Posts: n/a
 
      11th Jul 2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building class library projects into one name space dll Haris Microsoft Dot NET Compact Framework 4 25th Jul 2006 10:19 AM
Question on building projects using VS .NET =?Utf-8?B?RGlmZmlkZW50?= Microsoft ASP .NET 1 23rd Mar 2006 06:20 PM
black screen when building projects Frederik Vanderhaegen Microsoft Dot NET 0 26th Jan 2005 12:39 PM
building projects Dee Microsoft C# .NET 4 7th Sep 2004 12:31 AM
Error building projects in Debug configuration Michael Russell Microsoft VC .NET 0 3rd Mar 2004 10:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 PM.