views:

77

answers:

4

In visual studio, there is an option to "Rebuild All" from the build menu, what exactly does it do?

+1  A: 

It cleans every project in your solution and rebuilds all projects.

Nikola Smiljanić
So it's like a Clean followed by a Build?
RCIX
Of all your projects.
Kyle Rozendo
Clean and build is not the same as a rebuild (I haven't checked in VS2008, but in VS2005 performing a rebuild all certainly didn't clean the output directories)
Philippe Leybaert
Ah, thanks! ()()
RCIX
A: 

It ignores all dependencies between projects, and rebuilds every project in the solution (as if every source file has changed)

Philippe Leybaert
+1  A: 

It does rebuilds everything from scratch, but sometimes you need to use clean to clear some old files that stack into the build environment...

I don't know why (yet) but experiences shows sometime a clean is necessary even using rebuild all..

Dani
A: 

An example of when you need to do a rebuild: When you change an embedded resource (e.g. xml file, image), you will need to do a rebuild to ensure that the changes are included in the program - embedded resources are not considered to be a dependency when compiling.

row1