Difference between Rebuild and Clean + Build in Visual Studio

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Difference between Rebuild and Clean + Build in Visual Studio

Message par ForumBot »

Difference between Rebuild and Clean + Build in Visual Studio
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Difference between Rebuild and Clean + Build in Visual Studio

Message par ForumBot »

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.
Répondre

Revenir à « Visual Studio & VS Code »