Darj
Darj

Reputation: 1403

ASP.NET / VS2010 Finding unused files in project

Folks, is there any smart way to easily find unused files in entire solution? My project was consolidated by previous developer and it gained size at least 3x. I'd like to shrink the size of project but I cannot find quick and easy way. Any advices?

Upvotes: 8

Views: 1722

Answers (4)

James Johnson
James Johnson

Reputation: 46047

This open source project might be a good place to start. It's meant to filter out unused images, but it should be pretty easy to change so it looks for unused files.

Find unused images in VS Web Projects

Upvotes: 3

NickNo
NickNo

Reputation: 872

The extension in the selected answer above only works in vs2012 while Code Maid works in vs2010 - vs2014:

There is a free extension called Code Maid that "is an open source Visual Studio extension to cleanup, dig through and simplify our C#, C++, F#, VB, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding." Does images as well.

Upvotes: 0

Ste
Ste

Reputation: 1136

How about writing a program to do it? Could be a neat little project for a junior dev to write for you.

Upvotes: 1

Ulises
Ulises

Reputation: 13419

I think finding unused code is a job for a static analysis tool. As @kiru mentioned, Reshareper has this functionality and it is easy to use. They also offer a 1-month trial version.

Upvotes: 0

Related Questions