I have an application config file in which i create a key, i dont give this key a value. when the user runs the application, they will select a value which must then be stored to this key.
I use C# with the following code:
Expand|Select|Wrap|Line Numbers
- Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- config.AppSettings.Settings["ProfilesWorkingDirectory"].Value = dlgWorkingDir.SelectedPath;
- config.Save();
Is the build procedure over writing the config file?
Why am i losing that value?
Thanks in advance