07-24-2023, 12:34 PM
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][1]' this should not be a problem. So obviously I'm doing something wrong...
[1]:
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?
According to MusicGenesis in '[Putting configuration information in a DLL][1]' this should not be a problem. So obviously I'm doing something wrong...
[1]:
[To see links please register here]
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?