Question

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.

Was it helpful?

Solution

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

Note: You must call only once this method.

Client Settings

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top