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?
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).
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.
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.
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.
Assuming the msbuild targets have not been modified to add extra functionality then:
Rebuild = Clean + Build
Rebuild
is a shortcut for doing Clean
and then Build
- so you should get the same results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With