Hi,
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:
Now this works fine, the user selects a value and the application remembers this value. But when i close the project and rebuild the solution, the value is gone.
Is the build procedure over writing the config file?
Why am i losing that value?
Thanks in advance
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:
Code:
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
Comment