سؤال

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