Thursday, May 27, 2010

What is the difference between Build and Rebuild in Visual Studio ?

I was always confused about this until I found the answer. I would like to share my understanding in this Blog.

Build :Compile and link only the source files that have changed since the last build
Rebuild : Compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster. Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful.

You can do a Just complie to the source files being edited. Useful to quickly check for errors when the rest of your source files are in an incomplete state that would prevent a successful build of the entire project. Ctrl-F7 is the shortcut key for Compile

You can do a Build / Rebuild by doing a right click on the solution / project or Selecting the Build Menu option in the visual studio.


Or

No comments:

Post a Comment