5,667,575 members and growing! (13,217 online)
Email Password   helpLost your password?
Languages » C# » Utilities     Intermediate

VS.NET Solution Cleaner

By Leonardo Paneque

A small but useful application for cleaning a VS.NET solution folder.
C# 1.0, C#, Windows, .NET, .NET 1.1VS.NET2003, VS2005, Visual Studio, Dev

Posted: 29 Nov 2006
Updated: 29 Nov 2006
Views: 11,163
Bookmarked: 21 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
10 votes for this Article.
Popularity: 4.76 Rating: 4.76 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
2 votes, 22.2%
4
7 votes, 77.8%
5

Sample Image - solutioncleaner.jpg

Introduction

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. 

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

About the Author

Leonardo Paneque


Leonardo loves to code with C# and Java.
He has a degree in Computer Science and runs a team of coders called TeKnowMagic
Usually they work as a small company in www.RentACoder.com
Occupation: Software Developer (Senior)
Company: TeKnowMagic
Location: Spain Spain

Other popular C# articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 11 of 11 (Total in Forum: 11) (Refresh)FirstPrevNext
GeneralSetup ProjectsmemberKen Hadden12:23 15 May '07  
GeneralRe: Setup ProjectsmemberLeonardo Paneque18:59 15 May '07  
GeneralRe: Setup ProjectsmemberKen Hadden15:25 25 Sep '07  
GeneralGreat onememberAshish Basran0:01 4 Dec '06  
GeneralNicemembersprague29516:58 30 Nov '06  
GeneralOutstandingmemberAnthony Missico14:40 30 Nov '06  
GeneralFeaturememberMad20069:21 30 Nov '06  
GeneralRe: FeaturememberLeonardo Paneque10:14 30 Nov '06  
GeneralNicememberlleonart21:08 29 Nov '06  
GeneralRe: Nicememberedboe8:09 30 Nov '06  
GeneralRe: NicememberLeonardo Paneque10:07 30 Nov '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 29 Nov 2006
Editor: Smitha Vijayan
Copyright 2006 by Leonardo Paneque
Everything else Copyright © CodeProject, 1999-2008
Web18 | Advertise on the Code Project