I have created an application using Settings from Project Properties. This setting has been used to store some boolean and string variables. I know the settings are user base. So, it can be stored separately for each windows user. I have also added a feature to update application from web server. But, recently i have notice that when i have change the product version then all the settings are get reset. It should not be. How to avoid resetting all setting on version change.

This question is not for only c#. this problem also occurred in vb.

有帮助吗?

解决方案

You can try Settings.Upgrade() or ApplicationSettingsBase.GetPreviousVersion

Note: You must call only once this method.

Client Settings

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top