Assembly load
-
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
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")
-
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")
maybe
Assembly.GetCallingAssembly
?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.