How to know DLL path from itself

D

Doudou

Hello,

I would like to retrieve the full path of a DLL assembly from code in
itself (in a specific class) - something like the
Application.StartupPath in an EXE assembly ?
Is it possible ?

Thanks in advance for your help
Stephane
 
J

Jeroen Mostert

Doudou said:
I would like to retrieve the full path of a DLL assembly from code in
itself (in a specific class) - something like the
Application.StartupPath in an EXE assembly ?
Is it possible ?
Assembly.GetExecutingAssembly().Location.
 

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

Top