Cleaning and Purging a Visual Studio Project Folder with Devenv

© copyright 21.Jul.2010 by Paul Bradley posted under VB.


I have been working on the same Visual Studio project for over twelve months, and over that time the obj and bin sub-folders have become littered with temporary build files and different versions of the compiled .exe file.

As a result the project folder and all it’s sub-folders has grown to over 18Mb - as I work over a VPN, copying this project has become progressively slower, so I needed to clean and purge the unwanted files.

Visual Studio comes with a command line utility called devenv, which can be used with a clean switch, to purge your project folders of these unnecessary files. Using the commands below, the project was reduced to 3Mb - an 84% saving.

cd "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE"

devenv /clean Debug c:\project\project.sln

§


Please consider linking to this page, by sharing it with others using social sites like del.icio.us, Stumble Upon or Twitter or by emailing it to your friends.


Other Popular VB Articles