Determing the folder of compiled dll.

E

Edwin Knoppert

I distribute an ASP.NET dll, i want to determine the file location during
run-time.
Is it possible?
 
E

Edwin Knoppert

This showed something:

MsgBox(System.Reflection.Assembly.GetExecutingAssembly.CodeBase)

But i'm actually looking for the original folder :)
Of course usually the bin but i cannot expect the current context is
available to determine that.
 
P

Peter Rilling

There are other properties besides CodeBase. You might try them and see
what they return. I cannot remember which does what. One of the properties
probably gives the non-shadowed location. Don't know for sure though.
 

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

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,685
Members
48,796
Latest member
Greg L.

Latest Threads

Top