Nandha MV
Nandha MV

Reputation: 469

How to get list of methods in a C# project that is referenced to another project(dll reference)

I have two separate C# projects,

  1. A C# project is only used as a dll reference
  2. A C# project with 1st project as dll reference.

Now I need to clean up the old methods of 1st project which is used as a dll reference.

How can I find the functions/ methods that I am actively using/ calling from the 2nd to 1st project.

Upvotes: 1

Views: 96

Answers (1)

Rob Anthony
Rob Anthony

Reputation: 1813

I would comment out the Using reference to Project 1, then see which lines generate compile errors. That's where the references are used.

If you use Visual Studio, you can find them all if you install Resharper:

Expand the References and choose Find code Dependent on Module

Upvotes: 1

Related Questions