Reputation: 43
I have a project with hundreds of usercontrols but many of them are old and no longer used. Is there are quick way to find out which ones can be deleted?
Upvotes: 3
Views: 231
Reputation: 19080
I don't know of any VS function/tool that can do this but you can look for the following ways they are imported:
If you knock together a script to run through all of your codebehinds, .aspx files and web.config files, you would be able to build up a list of all controls in use. Then delete the unused ones.
Upvotes: 3