2.0: Build vs Rebuild

R

RAM

Hello,
I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain
me please the difference betwen Build and Rebuild commands? Thank you.
/RAM/
 
W

William DePalo [MVP VC++]

RAM said:
I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain
me please the difference betwen Build and Rebuild commands?

A build causes compilation of the files which have changed. A rebuild causes
the compilation of everything.

Regards,
Will
 
C

Cowboy \(Gregory A. Beamer\)

Build will only compile files that have changed. This is not always true,
but it is a good rule of thumb. Rebuild will force a recompile of all of the
files. Rebuild is useful after a number of builds to reduce the size of the
files and ensure all pieces are working together. Even the best compiler
gets a build wrong every once in a while.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
K

Kevin Spencer

Build will only compile files that have changed. This is not always true,
but it is a good rule of thumb. Rebuild will force a recompile of all of
the files.

I thought this was true for a long time, but I was unsure, so I researched
it. In fact, both Build and Rebuild will build all projects that are
specified as "Build" according to the Solution configuration. Rebuild
performs a Clean operation prior to the build, using the Solution
configuration. The Clean operation deletes all intermediate
compiler-generated and output files from the project/solution. The Clean
operation can also be performed separately.

Here are a couple of references from microsoft.com:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxlrfrebuilds.asp
http://msdn.microsoft.com/msdnmag/issues/01/09/basics/

--
HTH,

Kevin Spencer
Microsoft MVP
Computer Control Freak
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 
C

Cor Ligthert [MVP]

Thanks guys,

I have never bothered me about this.

But it is interesting to know.

Cor
 

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