Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Assembly load

Assembly load

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiodebuggingquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kaminem
    wrote on last edited by
    #1

    Hi all, I have an assembly (dll) loaded when I debug my solution and I want to know by which assembly (project) this dll is loaded ? Can I use the "Dependency Walker" ? is there a way in visual studio to see that ? Thanks in advance

    J 1 Reply Last reply
    0
    • K kaminem

      Hi all, I have an assembly (dll) loaded when I debug my solution and I want to know by which assembly (project) this dll is loaded ? Can I use the "Dependency Walker" ? is there a way in visual studio to see that ? Thanks in advance

      J Offline
      J Offline
      Justin Perez
      wrote on last edited by
      #2

      I am not sure if this could work, but can't you try a

      Console.WriteLine(string.Format("The calling assembly is: {0}",
      Assembly.GetExecutingAssembly()));

      in the DLL, and it will return the Executing assembly? Modified: No, that won't work. I have a dll that I am using as a override class for the windows installer package. I thew a MessageBox.Show(string.Format("The calling assembly is: {0}", Assembly.GetExecutingAssembly())); in there to see what it did and it just said that the DLL is the calling assembly, and you want to know which project is using the dll. So that won't work.

      I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

      L 1 Reply Last reply
      0
      • J Justin Perez

        I am not sure if this could work, but can't you try a

        Console.WriteLine(string.Format("The calling assembly is: {0}",
        Assembly.GetExecutingAssembly()));

        in the DLL, and it will return the Executing assembly? Modified: No, that won't work. I have a dll that I am using as a override class for the windows installer package. I thew a MessageBox.Show(string.Format("The calling assembly is: {0}", Assembly.GetExecutingAssembly())); in there to see what it did and it just said that the DLL is the calling assembly, and you want to know which project is using the dll. So that won't work.

        I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

        L Offline
        L Offline
        laserbaronen
        wrote on last edited by
        #3

        maybe

        Assembly.GetCallingAssembly

        ?

        fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups