R
RedLars
Hi,
Have a question about an AppSetting's file in VS2005.
Under Assembly \ Properties I got a Settings.settings which contains a
table of name, type, value etc. I also got a App.Config file in the
assembly which mirror the values in the table. When building the app
it generates WindowsApplication1.exe.config which is a copy of
App.Config. However If I change the content of the
WindowsApplication1.exe.config file using notepad, say from
<add key="KEY" value="test" />
to
<add key="KEY" value="demo" />
and re-run the application (without rebuilding it) it does not use the
new value.
I'm using this code to retrive the data;
string s = ConfigurationManager.AppSettings.Get("KEY");
Whats the correct way of using an settings file with .NET 2.0 that a
user can edit manually ? Should I be using other resources and api?
Cheers
Have a question about an AppSetting's file in VS2005.
Under Assembly \ Properties I got a Settings.settings which contains a
table of name, type, value etc. I also got a App.Config file in the
assembly which mirror the values in the table. When building the app
it generates WindowsApplication1.exe.config which is a copy of
App.Config. However If I change the content of the
WindowsApplication1.exe.config file using notepad, say from
<add key="KEY" value="test" />
to
<add key="KEY" value="demo" />
and re-run the application (without rebuilding it) it does not use the
new value.
I'm using this code to retrive the data;
string s = ConfigurationManager.AppSettings.Get("KEY");
Whats the correct way of using an settings file with .NET 2.0 that a
user can edit manually ? Should I be using other resources and api?
Cheers