0

A while back, I used this answer exactly to store a StringDictionary in my Application Settings in a C# 4.0 application. Upon upgrading it to C# 4.7.2, the entry using this class will no longer be generated into Settings.Designer.cs and the Settings gui won't let me select the class.

As suggested in this answer, I've added [SettingsSerializeAs(SettingsSerializeAs.Xml)] and a parameter-less constructor, to no avail.

I also tried bypassing the designer and changing the entry in Settings.settings from <SerializableStringDictionary> to <BBot.SerializableStringDictionary>.

I know there's several ways to skin this cat, so I'm mostly curious what changed to cause it to be rejected now.

Matt Rowland
  • 4,575
  • 4
  • 25
  • 34
Thomas
  • 3,348
  • 4
  • 35
  • 49
  • Well, I just solved it by reverting the changed to the generated file, bringing back the code it had generated. Its sticking around through a rebuild. – Thomas Jul 22 '19 at 13:47
  • However, my entry still no longer appears in the Settings UI, so any possible future changes would likely necessitate more manual intervention – Thomas Jul 22 '19 at 13:58

0 Answers0