C# Dll config file
Posted
by MegaByte
on Stack Overflow
See other posts from Stack Overflow
or by MegaByte
Published on 2009-02-27T10:53:24Z
Indexed on
2010/05/26
3:11 UTC
Read the original article
Hit count: 340
c#
|app-config
Hi
Im trying to add a 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 im 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?
© Stack Overflow or respective owner