I am trying to determine every single reference inside a dll with System.Reflection
. However, GetReferencedAssemblies
only lists the ones in the "References" (visible in solution explorer).
I would like to determine references from within the code itself, such as an imports
statement. Even things like if/then statements, try/catch, absolutely everything.
Is this possible to do using System.Reflection
? If so, how?
I would definitely prefer to do this without p/invoke.
Thanks for the help!
This is in vb.net.