Losing VB.NET “My.Settings” with each new ClickOnce deployment release
问题 I am using the built-in My.Settings functionality in VB.NET to save application settings. This is very convenient but I notice that each time I release a new version, the settings are lost. Why and how can I prevent it? 回答1: You need to manually update your application settings, I use this easy method: Create a boolean setting called MustUpgrade, User scope, default to True. Then write a method to check if My.Settings requires updating, and call it's Update() method if so. Flag your settings