Well, I found out the answer I was really looking for. Basically, you need to call LocalFileSettingsProvider.Upgrade. However, since I will deploy using ClickOnce, it will do this automatically for you.
Q: Well, but how do you know when to call Upgrade?
A: Good question. In Clickonce, when you install a new version of your application, ApplicationSettingsBase will detect it and automatically update the settings for you when loading point settings. In cases not related to Clickonce, there is no automatic update - you need to call Upgrade yourself. Here is one idea for determining when to call Upgrade:
Have a boolean parameter called CallUpgrade and set its default value to true. When your application starts, you can do something like:
if (Properties.Settings.Value.CallUpgrade) { Properties.Settings.Value.Upgrade(); Properties.Settings.Value.CallUpgrade = false; }
This ensures that Upgrade () is called only when the application is first launched after the new version is deployed.
REF: http://blogs.msdn.com/rprabhu/articles/433979.aspx
Lenard
source share