What does the 'Rebuild All' setting do?
In visual studio, ther开发者_JAVA百科e is an option to "Rebuild All" from the build menu, what exactly does it do?
It cleans every project in your solution and rebuilds all projects.
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..
It ignores all dependencies between projects, and rebuilds every project in the solution (as if every source file has changed)
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.
精彩评论