Find all references of a dll in a project

Seph picture Seph · Jun 16, 2013 · Viewed 16.2k times · Source

In Visual Studio 2010 (or 2012) is there a way to locate all references in code that mention any class/method defined in a referenced dll.

Currently I have two processes that I use (depending on the situation):

  • The first one involves just deleting the dll reference from the project and then making a note of all the build error locations.
  • The other way is to open the reference in the Object Browser and then expand to it's namespaces, and for each namespace I do a manual search, but this doesn't always help find all references and because the legacy code has the same namespaces spanning multiple assemblies there's a lot of noise to filter through.

Neither of these are really ideal solutions, is there any easier way to do this? perhaps via a VS extension.

Answer

wal picture wal · Jun 16, 2013

You can find this if you install Resharper:

Expand the References and choose Find code Dependent on Module

enter image description here

The results then appear like:

enter image description here