Location of DLL file (To find mylib.dll.config)

M

muesliflakes

I wish to access a config file for a DLL and I want to keep it in the
same location as the .DLL.

Eg. mylib.dll & mylib.dll.config

How do I find a path to an in memory library
 
J

Jared Parsons [MSFT]

this.GetType().Assembly.CodeBase

This will give you the original location of an assembly. Is this what
you're looking for?

--
Jared Parsons [MSFT]
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 

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