Alex Rivera | Logout

Tool to find all unused Code

Asked 2009-11-10T15:40:37.430
20

I need a tool I can run that will show me a list of unused methods, variables, properties, and classes. CSS classes would be an added bonus.

I heard FXCop can do this? or NDepend or something?

Edit
Report

2 Answers

8

Code Analysis in VSTS will generate warnings about this during the build process. You can set it up to treat Warnings As Errors.

answered 2009-11-10T15:45:51.000
5

You can use ReSharper to find unused code and Dust-Me Selectors to find unused CSS.

answered 2009-11-10T15:44:10.410

Your Answer