0

My C# application uses the default C# settings mechanism. The problem here is, that everytime I change my application's version number, all settings are gone and reset to their defaults.

Thus I implemented the upgrade mechanism described here.

Problem 1:

The weird thing is, that this seems to have no effect. After the upgrade code is executed, all settings still have their default values and none of the old values have been loaded.

Does the upgrade mechanism not work?

Problem 2:

Also after saving the settings, a new settings folder is created in AppData/Local (the name differs in the URI part). So after a couple of versions there are dozens of these folders lurking around, which does not feel right.

Is it normal behavior that an application creates new settings folders for each version?

Liam
  • 27,717
  • 28
  • 128
  • 190
Boris
  • 8,551
  • 25
  • 67
  • 120
  • Is there a question here? – Liam Dec 20 '18 at 09:30
  • Yes: Pooblem 1: in which cases does the upgrade mechanism not work? Problem 2: Is it normal behavior that an application creates new settings folders for each version? – Boris Dec 20 '18 at 09:41

0 Answers0