Frequently I need to create a .Net class library that requires an app.config for things such as database connection strings. However, these settings must be in the calling application's app.config or web.config. If I want to distribute the DLL across multiple applications it becomes a pain to have to keep copying these settings in the application's app.config.
I have consider manually reading the config settings via code inside the class library, but that is also a major pain. Does anyone have any suggestions for the best way to load app.config settings inside a class library?