This question already has an answer here:
- C# DLL config file 16 answers
I have a console application project and library project (dll) in one solution.
The library project has app.config file where I store some key value pair that I use in library. The console application references this dll.
I have another app.config file at console application where I have settings for console application.
When I run the program my library.dll always refers app.config from console application.
I want to separate the responsibility of each dll, so I want a dll to always refer to its own app.config file not that of the calling application.
In this case library.dll should use app.config of its own, not of the calling application.
how do I achieve this?