Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can there be any difference between Clean+Rebuild and Clean+Build

I've got a msbuild task in cruiseControl which first Clearn and then Rebuild. Can there be any difference if I change it as Clean and Build (rather than rebuild) ?

Rebuild does "Clean + Build" for each project. "Clean + Build" in the solution will clean all the projects and then build each of them. Can there be some corner cases that can make differences?

like image 839
CharithJ Avatar asked May 06 '11 00:05

CharithJ


People also ask

Is clean and build the same as rebuild?

For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).

What does clean build mean?

When you clean a build, all intermediate and output files are deleted, leaving only the project and component files. From the project and component files, new instances of the intermediate and output files can then be built.

What is clean and rebuild project in VS code?

On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName. Choose Build ProjectName to build only those project components that have changed since the most recent build. Choose Rebuild ProjectName to "clean" the project and then build the project files and all project components.

What does build clean project do?

Cleaning an Android project simply deletes the build directory. It removes the . class files that are generated when you compile your project and then recompiles again.


2 Answers

Assuming the msbuild targets have not been modified to add extra functionality then:

Rebuild = Clean + Build
like image 103
Paul Creasey Avatar answered Oct 08 '22 03:10

Paul Creasey


Rebuild is a shortcut for doing Clean and then Build - so you should get the same results.

like image 31
Josh M. Avatar answered Oct 08 '22 01:10

Josh M.