why vs.net always recompile the projects that are compiled?

  • Thread starter Thread starter Dai Hao
  • Start date Start date
D

Dai Hao

Hi all,

I have a solution that includes several projects, and one of them depends on
all others. When I compile it in Visual Studio, it always recompile all the
other projects even though I havn't modified them at all. This is annoying
coz whenever I make a small change, I have to wait for the whole solution to
be compiled. Can anybody suggest why and any way to solve it?

p.s. whenever I press F5 for debug, VS will recompile the solution even if I
havn't modified anything at all. This is stupid...

Regards,
David
 
Dai Hao said:
Hi all,

I have a solution that includes several projects, and one of them depends on
all others. When I compile it in Visual Studio, it always recompile all the
other projects even though I havn't modified them at all. This is annoying
coz whenever I make a small change, I have to wait for the whole solution to
be compiled. Can anybody suggest why and any way to solve it?

p.s. whenever I press F5 for debug, VS will recompile the solution even if I
havn't modified anything at all. This is stupid...

I have the same question.It says it's compiling.

However, I/m not sure that the same compilers run, or that they run for the
same amount of time. For instance, perhaps the "csc" command, called when
the source file hasn't changed, simply checks for changes in the referenced
assemblies? Such a change can change the meaning of the program and require
a full compile, even if the source code didn't change.

This is new technology, and the only way to know what it's doing is either
to measure, or to ask politely.
 
....
And if that is still acceptable, I still can't understand why it needs
to recompile (at least it says so, or whatever) when I debug without
modifying anything.

My point is that it needs to check the references your code uses, whether or
not your code actually changes.

I don't know if this is what it's doing while it says it's "Compiling", but
I though I'd mention the references issue because it's new.
 
May be this is what you want

Go to the Build Menu in VS.NET
Select Configuration Manger... from the Build Menu
For each Project Listed in your Solution you can check to Build or not to
build it All the way to the right it is a check box
 
Back
Top