ILDASM - where is ref'd assembly?

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!
 
M

Mattias Sjögren

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
 
G

Grant Richins [MS]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top