user.config

Deploy user.config file

Hello guys, I'm having problems deploying a config file. I have a set of default configurations, which are altered at the moment of installation (custom installer class). But strangely, my settings keep being reset. In VS2005 all settings are defined with default value, but it's just not getting into my deploy software. What can i do?...

c# Unit Test: Writing to Settings in unit test does not save values in user.config

I am running a c# unit test (VS 2008). Within the test I do write to the settings, which should result in saving the data to the user.config. Settings.Default.X = "History"; // X is string Settings.Default.Save(); But this simply does not create the file (I have crosschecked under "C:\Documents and Settings\HW\Local Settings\Applicati...

Split user.config into different files for faster saving (at runtime)

In my c# Windows Forms application (.net 3.5 / VS 2008) I have 3 settings files resulting in one user.config file. One setting file consists of larger data, but is rarely changed. The frequently changed data are very few. However, since the saving of the settings is always writing the whole (XML) file it is always "slow". SettingsSmall...

How to save user.config to AppData\Roaming folder instead of AppData\Local?

Introductory Example This code Properties.Settings.Default.MyUserSettingBlah = "some new value"; Properties.Settings.Default.Save(); saves the user.config file to C:\Users\MyUserName\AppData\Local\My_Company_Name\MyApp_Url_vb2s5kwidefdmxstmabckatcyl5t0lxd\1.0.0.0\user.config Question How can I save user.config to C:\Users\MyUse...