我正在尝试创建一个类库,它将根据其物理文件名加载不同的文件。
也就是说,如果物理文件名称为"test.dll“,它将从"test.config”加载其设置,如果该文件被复制并重命名为"copy.dll“,则它将从”copy.config“加载其设置。
System.Diagnostics.Process.GetCurrentProcess();
//doesn't work as I'm loading the dll's dynamically into a console application and calling their meth