Click here to Skip to main content
13,299,495 members (60,153 online)
Click here to Skip to main content
Add your own
alternative version


31 bookmarked
Posted 29 Nov 2006

VS.NET Solution Cleaner

, 29 Nov 2006
Rate this:
Please Sign up or sign in to vote.
A small but useful application for cleaning a VS.NET solution folder.

Sample Image - solutioncleaner.jpg


How many times, when you zipped your code for mailing or for posting on a site (like this :) ), have you noticed that you zipped PDB, debug files, etc., and that your little code snippet became 1 MB in size? Well, well, the same happened to me when coding and sharing code with friends through mail or using forums, so I just coded this little application; it was for my own use, so it is not too fancy. But I am sure it will help you to clean up solution folders and will save you time.

Some Visual Studio plug-ins like ReSharper generates lots of small files, and you can delete them with this application. You can select what you want to delete and what not, and extend this to your needs.

How to use

Quite simple, just copy the SolutionCleaner.exe and run it, you will be able to integrate it with the Shell by checking the "Register on Shell" menu item in the Application menu. Then, you can just right click a folder on Explorer and you will see the "Clean with Solution Cleaner" option. The program will ask you for confirmation before it starts deleting files. It will also show a preview of the files that will be deleted and the amount of space that will be freed, and will mark, in red, files that could not be deleted.

Know problems

Right clicking on a folder in the Explorer treeview and on the Explorer list view returns different folders, the one in the tree view returns the folder currently clicked, but clicking on the list view will return the parent folder. So be careful with this, and if you find out the reason, please!! let me know.

Also, registering this application on the Shell seems to require admin permisions, any workaround? Please tell.

Coming soon

I think people can modify this to delete files created by other plug-ins, but what I will do now is to zip and mail within this application, so it will be something like "Clean, zip, and send" with one click. 


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Leonardo Paneque
United States United States
Leonardo loves to code with C# on any platform and OS.
He has a Master degree in Computer Sciences and likes to share code and ideas.

You may also be interested in...


Comments and Discussions

GeneralSetup Projects Pin
Ken Hadden15-May-07 12:23
memberKen Hadden15-May-07 12:23 
GeneralRe: Setup Projects Pin
Leonardo Paneque15-May-07 18:59
memberLeonardo Paneque15-May-07 18:59 
GeneralRe: Setup Projects Pin
Ken Hadden25-Sep-07 15:25
memberKen Hadden25-Sep-07 15:25 
GeneralGreat one Pin
Ashish Basran4-Dec-06 0:01
memberAshish Basran4-Dec-06 0:01 
GeneralNice Pin
sprague29530-Nov-06 16:58
membersprague29530-Nov-06 16:58 
Very handy - good work Smile | :)

GeneralOutstanding Pin
Anthony Missico30-Nov-06 14:40
memberAnthony Missico30-Nov-06 14:40 
GeneralFeature Pin
Mad200630-Nov-06 9:21
memberMad200630-Nov-06 9:21 
GeneralRe: Feature Pin
Leonardo Paneque30-Nov-06 10:14
memberLeonardo Paneque30-Nov-06 10:14 
GeneralNice Pin
lleonart29-Nov-06 21:08
memberlleonart29-Nov-06 21:08 
GeneralRe: Nice Pin
edboe30-Nov-06 8:09
memberedboe30-Nov-06 8:09 
GeneralRe: Nice Pin
Leonardo Paneque30-Nov-06 10:07
memberLeonardo Paneque30-Nov-06 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 30 Nov 2006
Article Copyright 2006 by Leonardo Paneque
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid