I'm trying to create a class library which will load different files depending on its physical file name.
i.e. if physical file name is called "test.dll" it will load its settings from "test.config", if the file is duplicated and renamed to "copy.dll" then it will load its settings from "copy.config"....
System.Diagnostics.Process.GetCurrentProcess();
//doesn't work as I'm loading the dll's dynamically into a console application and calling their methods.
Any ideas?