Tool or code to display referenced assemblies??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Rock

    #1

    Tool or code to display referenced assemblies??

    Hello,

    is there a tool around that given an assembly shows the referenced
    assemblies???
    Any code snippet to do this programmaticall y???


    Regards,
    Bob Rock


  • mikeb

    #2
    Re: Tool or code to display referenced assemblies??

    Bob Rock wrote:
    [color=blue]
    > Hello,
    >
    > is there a tool around that given an assembly shows the referenced
    > assemblies???
    > Any code snippet to do this programmaticall y???
    >[/color]

    The framework SDK has a sample called ADepends. It's in

    "Tool Developers Guide\Samples\a depends"

    under the SDK directory.

    --
    mikeb

    Comment

    • mikeb

      #3
      Re: Tool or code to display referenced assemblies??

      Bob Rock wrote:
      [color=blue]
      > Hello,
      >
      > is there a tool around that given an assembly shows the referenced
      > assemblies???
      > Any code snippet to do this programmaticall y???
      >[/color]

      The framework SDK has a sample called ADepends. It's in

      "Tool Developers Guide\Samples\a depends"

      under the SDK directory.

      --
      mikeb

      Comment

      • Chris R. Timmons

        #4
        Re: Tool or code to display referenced assemblies??

        "Bob Rock" <nospam.yet_ano ther_apprentice @hotmail.com> wrote in
        news:ea1q3LIKEH A.2580@TK2MSFTN GP12.phx.gbl:
        [color=blue]
        > Hello,
        >
        > is there a tool around that given an assembly shows the referenced
        > assemblies???
        > Any code snippet to do this programmaticall y???[/color]

        Bob,

        Look up the System.Reflecti on.Assembly.Get ReferencedAssem blies
        method in the help file. It isn't documented very well, so you may
        also want to search Google groups (groups.google. com) and MSDN
        (msdn.microsoft .com) for more info on how it's used.

        Hope this helps.

        Chris.
        -------------
        C.R. Timmons Consulting, Inc.

        Comment

        • Chris R. Timmons

          #5
          Re: Tool or code to display referenced assemblies??

          "Bob Rock" <nospam.yet_ano ther_apprentice @hotmail.com> wrote in
          news:ea1q3LIKEH A.2580@TK2MSFTN GP12.phx.gbl:
          [color=blue]
          > Hello,
          >
          > is there a tool around that given an assembly shows the referenced
          > assemblies???
          > Any code snippet to do this programmaticall y???[/color]

          Bob,

          Look up the System.Reflecti on.Assembly.Get ReferencedAssem blies
          method in the help file. It isn't documented very well, so you may
          also want to search Google groups (groups.google. com) and MSDN
          (msdn.microsoft .com) for more info on how it's used.

          Hope this helps.

          Chris.
          -------------
          C.R. Timmons Consulting, Inc.

          Comment

          • William Stacey [MVP]

            #6
            Re: Tool or code to display referenced assemblies??

            For a gui tool, .net reflector is nice.

            --
            William Stacey, MVP

            "Bob Rock" <nospam.yet_ano ther_apprentice @hotmail.com> wrote in message
            news:ea1q3LIKEH A.2580@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Hello,
            >
            > is there a tool around that given an assembly shows the referenced
            > assemblies???
            > Any code snippet to do this programmaticall y???
            >
            >
            > Regards,
            > Bob Rock
            >
            >[/color]

            Comment

            • William Stacey [MVP]

              #7
              Re: Tool or code to display referenced assemblies??

              For a gui tool, .net reflector is nice.

              --
              William Stacey, MVP

              "Bob Rock" <nospam.yet_ano ther_apprentice @hotmail.com> wrote in message
              news:ea1q3LIKEH A.2580@TK2MSFTN GP12.phx.gbl...[color=blue]
              > Hello,
              >
              > is there a tool around that given an assembly shows the referenced
              > assemblies???
              > Any code snippet to do this programmaticall y???
              >
              >
              > Regards,
              > Bob Rock
              >
              >[/color]

              Comment

              • Doknjas

                #8
                re:Tool or code to display referenced assemblies??

                Assuming "asm" is a reference to an existing assembly, then the
                referenced ones' names can be retrieved via:

                System.Reflecti on.AssemblyName[] refs =
                asm.GetReferenc edAssemblies();

                Unfortunately, this is just the assembly names, not the actual
                assembly references that you may find useful.
                I'd also be interested if anyone knew a way to get to the actual
                referenced assemblies.

                Comment

                • Doknjas

                  #9
                  re:Tool or code to display referenced assemblies??

                  Assuming "asm" is a reference to an existing assembly, then the
                  referenced ones' names can be retrieved via:

                  System.Reflecti on.AssemblyName[] refs =
                  asm.GetReferenc edAssemblies();

                  Unfortunately, this is just the assembly names, not the actual
                  assembly references that you may find useful.
                  I'd also be interested if anyone knew a way to get to the actual
                  referenced assemblies.

                  Comment

                  Working...