Click here to Skip to main content
Click here to Skip to main content

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

Introduction

How many times, when you zipped your code for mailing or for posting on a site (like this Smile | :) ), 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. 

License

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

Share

About the Author

Leonardo Paneque
Team Leader
United States United States
Leonardo loves to code with C# and thinks .NET platforms rocks.
He has a Master degree in Computer Sciences and likes to share code and ideas.
Follow on   Twitter

Comments and Discussions

 
GeneralSetup Projects PinmemberKen Hadden15-May-07 12:23 
GeneralRe: Setup Projects PinmemberLeonardo Paneque15-May-07 18:59 
GeneralRe: Setup Projects PinmemberKen Hadden25-Sep-07 15:25 
GeneralGreat one PinmemberAshish Basran4-Dec-06 0:01 
GeneralNice Pinmembersprague29530-Nov-06 16:58 
GeneralOutstanding PinmemberAnthony Missico30-Nov-06 14:40 
Exactly what I need, but don't have time to code. Thank you very much. Job well done!
GeneralFeature PinmemberMad200630-Nov-06 9:21 
GeneralRe: Feature PinmemberLeonardo Paneque30-Nov-06 10:14 
GeneralNice Pinmemberlleonart29-Nov-06 21:08 
GeneralRe: Nice Pinmemberedboe30-Nov-06 8:09 
GeneralRe: Nice PinmemberLeonardo Paneque30-Nov-06 10:07 

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

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

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