ILDASM - where is ref'd assembly?

  • Thread starter Thread starter Marty McDonald
  • Start date Start date
M

Marty McDonald

My assembly "A" references another of my assemblies "B". I'd like to
determine which version of "B" "A" expects. I'm using ILDASM, but I can't
find any mention of "B" in there. I'm clicking on the "manifest" icon, as
well as using ctrl-M to see the meta info. Any ideas? Thanks!
 
Marty,
My assembly "A" references another of my assemblies "B". I'd like to
determine which version of "B" "A" expects. I'm using ILDASM, but I can't
find any mention of "B" in there. I'm clicking on the "manifest" icon, as
well as using ctrl-M to see the meta info. Any ideas?

You should see if when viewing the manifest, it should show up
something like this

..assembly extern B
{
.ver 1:2:3:4
}

If it's not there, it's not referenced. Note that the C# compiler
discards unused references (i.e. you'll only see .assemmbly extern
directives for assemblies that you actually used in your code).



Mattias
 
There will be blocks that begin with ".assembly extern" that identify
referenced assemblies. Note that the C# compiler 'optimizes' away unneeded
references. So if you never use anything from assembly B, then the compiler
will not emit a reference to B.
 
Back
Top