C# DLL config file

Im trying to add an app.config file to my DLL, but all attempts have failed.

According to MusicGenesis in ‘Putting configuration information in a DLL’ this should not be a problem. So obviously I’m doing something wrong…

The following code should return my ConnectionString from my DLL:

return ConfigurationManager.AppSettings["ConnectionString"];

However, when I copy the app.config file to my console application, it works fine.

Any ideas?

17 Answers
17

Leave a Comment