Thursday, January 8, 2015

Difference between Build, Rebuild & Clean

Dear .Net developers , While using visual studio many times we come across this key words. Let understand us the difference between them.

  • Build solution will perform an incremental build: if it doesn't think it needs to rebuild a project, it won't. It may also use partially-built bits of the project if they haven't changed (I don't know how far it takes this)
  • Rebuild solution will clean and then build the solution from scratch, ignoring anything it's done before
  • Clean solution will remove the build artefacts from the previous build. If there are any other files in the build target directories (bin and obj) they may not be removed, but actual build artefacts are. I've seen behaviour for this vary - sometimes deleting fairly thoroughly and sometimes not - but I'll give VS the benefit of the doubt for the moment :)

         Hope you have got this.

1 comment: