Determing the folder of compiled dll.

  • Thread starter Thread starter Edwin Knoppert
  • Start date Start date
E

Edwin Knoppert

I distribute an ASP.NET dll, i want to determine the file location during
run-time.
Is it possible?
 
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.
 
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

Back
Top