In Visual Studio, what does the "Clean" command do?

Arnis Lapsa picture Arnis Lapsa · Oct 21, 2009 · Viewed 40.1k times · Source

You know, the one that outputs this=>

------ Clean started: Project: Foo.Bar, Configuration: Debug Any CPU ------
========== Clean: 1 succeeded, 0 failed, 0 skipped ==========

What it is cleaning?

Answer

Jon Skeet picture Jon Skeet · Oct 21, 2009

The output directories - it removes the code that it's previously built.

It doesn't remove the bin/obj directories themselves (or the Debug/Release directories beneath them), just the actual .exe, .dll, etc files. Unfortunately this makes it less useful for my usual use of cleaning up output directories: when I want to zip up the source code. As the Clean action doesn't do this, I usually just delete the bin and obj directories directly.