Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - Remove unused files

Tags:

Was wondering if there's an extension or macro or something that looks through your solution and gives out a report of which js/css/image files are not being referenced anywhere in code?

I have a large project and over time it has accumulated dust. Other than manually searching for each file's usage, is there any other time saving way?

like image 902
Mrchief Avatar asked Apr 14 '11 15:04

Mrchief


1 Answers

There's a Visual Studio Extension that searches for unreferenced image files. It finds all image files in your project and then scan all aspx/cs/ashx/css/js files for references. It has not yet been updated for Visual Studio 2012.

http://visualstudiogallery.msdn.microsoft.com/fb7a9b9c-08e1-4bb4-91b4-8e512feb5a1b

like image 200
Erik Olson Avatar answered Sep 22 '22 22:09

Erik Olson