Monday, 7 December 2015

Build, Rebuild and Clean in Visual Studio

Hi,

Today I was talking to a fresher and explaining some of the shortcuts in Visual studio and how we build solutions etc.. and so thought of the writing about Build, Rebuild and Clean Solution in Visual Studio.

These three things very often used in Visual Studio.

Build Solution
Incremental build and compiles only the files that are modified. When build solution if there are no changes made to the files Visual Studio won't do anything. Visual Studio builds the assembly only if there are changes to the files.


Clean Solution
Deletes all compiled files, output directories. If your solution has multiple projects, VS cleans project by project.


Rebuild SolutionDeletes all compiled files and compiles all the things irrespective changes happened. In simple words, Clean + Build = Rebuild.

Hope this helps.

--
Happy Coding
Gopinath

No comments:

Post a Comment