Compiling Solution

  • Thread starter Thread starter Nice Chap
  • Start date Start date
N

Nice Chap

I have a solution that includes around 30-40 projects. *Each time* I hit the
run button, VS.net compiles all the projects (even if nothing has been
changed) !! This is wasting a lot of our time. Is there is way to prevent
VS.net from compiling projects every time we hit run.

PS: I run the release configuration and also I have set the optimization
to - 'Enable Incremental Build'
 
Nice Chap said:
I have a solution that includes around 30-40 projects. *Each time* I
hit the run button, VS.net compiles all the projects (even if nothing
has been changed) !! This is wasting a lot of our time. Is there is
way to prevent VS.net from compiling projects every time we hit
run.

PS: I run the release configuration and also I have set the
optimization to - 'Enable Incremental Build'

Unfortunatelly this is not possible. You could manually exclude projects
from the build process but automatically, there is no way to have only the
changed projects compiled. I hope this will be change in the next version
(will it?)! I even thought this has been improved from VB 2002 to VB 2003
but I was wrong.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
The only real way to do this is to create a new build configuration item that will run your project without building anything. If you are not familiar with this then you can do this via Build->Configuration Manager, select '<new>' from the dropdown list to create a new configuration item and then untick the build option for all components for that configuration

A new item will then appear in the dropdown list next to the start button of the IDE's standard toolbar. You can then choose to run the project with or without compilation as you require

HTH
Gary
 
* "Nice Chap said:
I have a solution that includes around 30-40 projects. *Each time* I hit the
run button, VS.net compiles all the projects (even if nothing has been
changed) !! This is wasting a lot of our time. Is there is way to prevent
VS.net from compiling projects every time we hit run.

All you can do is creating a new configuration and exclude some of the
projects from the build process. You can do that by selecting
"Configuration Manager..." from the "Debug"/"Release" combobox in
VS.NET's toolbar. Notice that this is very unflexible.
PS: I run the release configuration and also I have set the optimization
to - 'Enable Incremental Build'

This option AFAIR doesn't do anything because incremental builds are not
supported by the VB.NET compiler.
 
Back
Top