Hi,
The IDE recognizes 'app.config' as a special name for the application
configuration file. When you build your project, this file is renamed to
'<yourappname>.exe.config' and copied to the output folder. If you rename
the source file to anything other than 'app.config', the IDE will no more
treat it in any automatic fashion.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"cloudx" <cl****@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
Hi there, it is driving me crazy. Aftering renaming app.config the
following
code I always get null on myApp. It works if I keep the name app.config.
Why?
string myApp = ConfigurationSettings.AppSettings["AppName"];
Thanks!