Which one is better Build, Rebuild, or Clean in C#?


Build solution

This will perform an incremental build. In other words it will only build code files which have changed.

If they have not changed those files will not be touched. Compiles code files (DLL and EXE) which are changed.

Rebuild solution

This will delete all currently compiled files (i.e., exe and DLLs) and will build everything from scratch,

Irrespective of if there is code change in the file or not.

Clean solution

This menu will delete all compiled files (i.e., EXE’s and DLL’s) from the bin/obj directory.

Rebuild = Clean + Build

Updated on: 04-Aug-2020

164 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements