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

  • Thread starter Thread starter muesliflakes
  • Start date Start date
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
 
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"
 
Back
Top