Skip to content
April 2, 2008 / kiranpatils

What is the Difference Between Build and Re-Build in visual Studio .Net?

Difference between Build Solution and Rebuild Solution option in VS.Net

Difference between Build Solution and Rebuild Solution option in VS.Net

VisualStudio.Net provides us with two options for compiling and creating builds for our application. They are Build Solution and Rebuild Solution options which can be accessed from the Build menu. The differences between these two options are

1. The Build Solution option compiles only those project files and components that have changed since the last build. For example consider that you have two projects Proj1 and Proj2 in your solution MySolution. When you compile the solution using Build Solution option after making some changes to Proj1 only Proj1 will be compiled and built but Proj2 will not be compiled since there are no changes to it.

2. On the other hand the Rebuild Solution option builds all project files and components irrespective of the changes made to them.  For example consider that you have two projects Proj1 and Proj2 in your solution MySolution. When you compile the solution using Rebuild Solution option after making some changes to Proj1, both Proj1 and Proj2 will be compiled and built even though there are no changes made to Proj2.

In Short:

Build: Compile Changes 

Rebuild: Compile all [whether source is changed or not] .

Thanks to :

http://www.dotnetjunkies.com/WebLog/nilapenn/archive/2004/05/22/14251.aspx

Thanks Buddy nilapenn

2 Comments

Leave a Comment
  1. Robert Michika / Jun 25 2010 2:16 am

    I recently switched form VS2008 to VS2010. Now it seems that the compiler does a full build no matter what the change. If I change a comment and do a build, it does a full build. Do you know if there is a way to do a partial build?

    • kiranpatils / Jul 20 2010 4:43 pm

      Hi Robert,

      Apologize for delay in reply.

      Sorry, I’ve no idea — have you got its answer? If yeah pls share it so others can be benefited from it else some expert may read your question and reply it!

      Happy Coding🙂

      Sincerely,
      Kiran Patil

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: