I have a Win Form application that stores some settings for each user in the UserSettings.Settings file. This has worked well so far, however it seems that the settings file is getting "reset" when I release the update. What am I doing through ClickOnce.
ClickOnce
Is this the expected behavior?Can I control if the fields in the settings file are overwritten?Is there a better way to save user preferences?
thank
ApplicationSettingsBase.Upgrade Method . : "" app.config?
, , , , , Upgrade - :
if(!Settings.Default.Upgraded) { Settings.Default.Upgrade(); Settings.Default.Upgraded = true; Settings.Default.Save(); }
, . , .
.Settings? , . :
http://blog.kowalczyk.info/article/Getting-user-specific-application-data-directory.html
!
ClickOnce?
, Scope , ,
, ClickOnce , ClickOnce . , ( ) , , .
Windows Vista/7 :
C:\Users\USERNAME\AppData\Local\MANUFACTURER_NAME\
C:\Users\USERNAME\AppData\Roaming\MANUFACTURER_NAME\
im , xp.
, . .