Thursday, February 16, 2012

Visual Studio: Build vs Rebuild

Visual studio allows to build or to rebuild either solution or single project.

And sometimes i face a common question: what is the difference between those two options?

Both Build and Rebuild commands used for compiling and linking source files. But in case of Build only files, that have been changed since last build will be compiled and linked, the rest will be untouched.

In case of Rebuild ALL the files will be compiled, regardless of whether they have been changed or not since the last build.

The build is definetely faster and could be used if you are sure, that for example the reference files or libraries wasn't changed.

No comments :

Post a Comment