ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Find code dependent on referenced modules

Last modified: 21 July 2022

ReSharper | Find | Find Dependent Code

To assign a shortcut, go to Tools | Options | Environment | Keyboard and find the ReSharper_FindDependentCode command.

You can quickly find how and where symbols from a specific referenced module (referenced project, assembly, or installed NuGet package) are used. In large solutions, this will help you detect architectural problems and reduce coupling.

In the results of the search, you will see all places in your code where module's types or type members appear.

If you search for code dependent on a referenced module, ReSharper finds usages of the module's symbols in the project where it is referenced. If you search for code dependent on a project, ReSharper finds usages of the project's symbols in the whole solution.

Filters in the Find Results window will help you quickly find specific kinds of usages:

ReSharper: Finding code depending on project or assembly