I have moved App.config file which contains some AppSettings into DLL project from the EXE project of same solution. After that I have noticed using Configuration manager, I get only null values.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="Path1" value="C:\ProgramData\Resources\file2.xml" />
<add key="Path2" value="C:\ProgramData\Development\file1.xml" />
</appSettings>
</configuration>
/* Reading */
public string Path1=> ConfigurationManager.AppSettings["Path1"];
public string Path2=> ConfigurationManager.AppSettings["Path2"];
If I move back the App.config into my EXE project, I'm able to read all values right using configuration manager.
So, my question is if I have only DLL (COM) project in my solution where I dont have control on EXE(developed by 3rd party) project then how to manage the settings using App.config file?