ILDASM - where is ref'd assembly?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marty McDonald

    #1

    ILDASM - where is ref'd assembly?

    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!


  • Mattias Sjögren

    #2
    Re: ILDASM - where is ref'd assembly?

    Marty,
    [color=blue]
    >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?[/color]

    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

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    • Grant Richins [MS]

      #3
      Re: ILDASM - where is ref'd assembly?

      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.

      --
      --Grant
      This posting is provided "AS IS" with no warranties, and confers no rights.


      "Marty McDonald" <mcdonama@wsdot .wa.gov> wrote in message
      news:erfMkhXTDH A.1556@TK2MSFTN GP10.phx.gbl...[color=blue]
      > 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!
      >
      >[/color]


      Comment

      Working...