What is the difference between just a Rebuild and doing a Clean + Build in Visual Studio 2008? Is Clean + Build different then doing Clean + Rebuild?
Visual-studio – Difference between Rebuild and Clean + Build in Visual Studio
buildrebuildvisual studiovisual-studio-2008
Related Topic
- Visual-studio – What are the various “Build action” settings in Visual Studio project properties and what do they do
- Visual-studio – How to add an existing directory tree to a project in Visual Studio
- .net – ASP.NET Web Site or ASP.NET Web Application
- .net – What does the Visual Studio “Any CPU” target mean
- Go to Matching Brace in Visual Studio
- Visual-studio – Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio
- Visual-studio – How to auto format code in Visual Studio
Best Answer
Rebuild = Clean + Build (usually)
Notable details:
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). This difference in sequencing of events can become significant when inter-project dependencies come into play.
All three actions correspond to MSBuild targets. So a project can override the Rebuild action to do something completely different.