Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 252
Arnis Lapsa Avatar asked Oct 21 '09 19:10

Arnis Lapsa


People also ask

What does clean do?

Cleaning removes dirt, dust, crumbs, and germs from surfaces or objects. When you clean, you will likely use soap (or detergent) and water to physically clean off the surfaces and objects. This may not necessarily kill the germs.

Is rebuild the same as clean and build?

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).

How do I clean up Visual Studio files?

With your project open in Visual Studio, choose Build menu > Clean Solution. This removes all compiled assemblies (.exe, . dll files) and object (. obj) files from your projects, but does not remove the debugging files.


1 Answers

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.

like image 124
Jon Skeet Avatar answered Sep 22 '22 02:09

Jon Skeet