I need a tool that can dump the referenced types used by an assembly in a machine readable format.
e.g. this Code in assembly ‘dummy.exe’
static void Main()
{
Console.WriteLine("Hello World");
}
would produce something like
<references assembly="dummy.exe">
<mscorlib>
<System.Console>
<WriteLine/>
...
Can you do this with reflector?
Reflector is capable of showing the imported types and assemblies. Right-click the assembly and choose Analyze from the context menu. You can then expand the generated tree view and copy a textual representation of the dependenies (no XML though, simple plain text). E.g. for the PresentationCore assembly you would get (not all references are expanded in the sample below):