How can I investigate .NET DLL Dependency?

727 views Asked by At

I get an exception related to a DLL which can't be loaded but... no project seems to reference that DLL.

How can I know who is calling it?

1

There are 1 answers

0
Nick Harrison On

run ildasm from the Visual Studio command prompt. You will find ildasm in the same folder as Visual Studio (devenv)

With ildasm you can loan an assembly and then disassemble it back to IL. This isn't really helpful in most cases, but it will also give you access to the manifest for your assembly.
enter image description here

Double click on the Manifest, and you will get the manifest for that Assembly. You are interested in the stuff at the top which will be all the assembly references. enter image description here

Pull up the manifest for each of the referenced assemblies and you will find the one that has a dependency on the assembly causing problems.