shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

# Friday, March 26, 2004

Clean Project

Does anyone know why there is a Clean button in the Batch Build dialog in VS.NET but it fails to do anything? I think this would be a useful feature no? (delete all the files in bin/Debug and bin/Ship). If you rename your assemblies a lot of crud builds up there over time. It would also be nice for zipping source to send to some one (no need to send the output in the /bin and /obj directories).

Maybe it’s fixed in Whidbey?

MSDN Search yielded no useful information.

 

Friday, March 26, 2004 2:11:36 PM (Pacific Daylight Time, UTC-07:00)
According to the MSPress book "Inside Microsoft Visual Studio .NET," the /clean switch (which is the same as pressing the Clean button) calls Build.CleanSolution. It also says it seems to work for Visual C++ projects but not for the other types of projects that come with VS. (page 465).
Friday, March 26, 2004 2:25:59 PM (Pacific Daylight Time, UTC-07:00)
Good to know. However I am surprised that there isn't a KB article or mention of this in help.
Friday, March 26, 2004 2:52:48 PM (Pacific Daylight Time, UTC-07:00)
Man, I *hate* that! I always like to build clean before I zip up a solution structure, so I'm not sending large binaries. It's so frustrating that VS gives you the illusion that you can do this automatically, but when you click on the "clean" button nothing really happens.

I wish the Visual Studio team would either fix that functionality or stop taunting me with a button that doesn't do anything.
Sunday, November 28, 2004 6:07:36 PM (Pacific Standard Time, UTC-08:00)
This is deeply irritating. It's also one of MANY such surprises I've encountered while using VS.NET that makes me really wonder what sort of design review and testing these tools made it through...
Anonymous
Monday, December 06, 2004 12:06:20 AM (Pacific Standard Time, UTC-08:00)
The button is probably there because the UI is used across different project types. That dialog might be displayed when you open it on a solution, and the solution could contain C++ projects as well as C#?

I'm pretty sure they added "clean" for C# projects in Whidbey. Right clicking on a C# project in VS 2005 Beta 1 offers a "clean" context menu item that wasn't there previously.
ShadowChaser
Comments are closed.