Build, Rebuild and Clean in Visual Studio


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

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s