List symbols exported by an assembly that are used by another assembly

230 views Asked by At

I have two .net assemblies - lets call them A and B. Assembly A uses some classes exported by B.

Is there a utility that can tell me which of B's classes are used by A and which members (functions, properties, etc) of those classes are used?

I've tried reflector, JetBrains dotPeek, NDepend, and Just Decompile but (unless I'm missing something) they only seem to show assembly-level dependencies. Any suggestions for what I can try?

EDIT: Added NDepend, and Just Decompile, and clarified that I'm not interested in assembly-level dependencies

2

There are 2 answers

3
Jon Skeet On

This is the sort of thing that I believe NDepend will let you find out easily. I still (to my shame) haven't tried it out, but this problem sounds like NDepend's bread and butter.

(If you can't do it at the moment with NDepend, I suspect the author would welcome a feature request...)

1
Ctrl_Alt_Defeat On

You also might want to try Teleriks Just Decompile (free download so may give you want you want)