path of dll loaded in exe

  • Thread starter Thread starter john
  • Start date Start date
J

john

I have a dll that is referenced by an exe. the default
path of the appdomain is the path to the exe, but i need
to retrieve the path to the dll. how can i do this when
the exe has loaded the dll?
 
I have a dll that is referenced by an exe. the default
path of the appdomain is the path to the exe, but i need
to retrieve the path to the dll. how can i do this when
the exe has loaded the dll?

System.Reflection.Assembly.GetExecutingAssembly().Location from within
the DLL code.



Mattias
 
Hi John,

Did you tried
System.Reflection.Assembly.GetExecutingAssembly().GetName().Location

Cheers,
 

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

Similar Threads

Language strings 7
application domain 6
DLL Outputg path problem 3
Naming the log4net.config file? 1
Dll Path 4
Recognizing interfaces while using reflection 1
Creating an interop dll 1
app can't find needed dll 6

Back
Top