How to get path to DLL within a class library

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?

- Don
 
* "Don said:
Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?

\\\
MsgBox(System.Reflection.Assembly.GetAssembly(Me.GetType()).Location)
///
 
Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?


GetType(SomeClassOfYours).Assembly.Location



Mattias
 
Back
Top