问题
In visual studio, there is an option to "Rebuild All" from the build menu, what exactly does it do?
回答1:
It cleans every project in your solution and rebuilds all projects.
回答2:
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..
回答3:
It ignores all dependencies between projects, and rebuilds every project in the solution (as if every source file has changed)
回答4:
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.
来源:https://stackoverflow.com/questions/1865325/what-does-the-rebuild-all-setting-do