I have read the numerous questions here on this and even posted one of my own trying to get to the bottom of this(My Previous Question). Unfortunately, none of them answer my question. My .Settings
file get's reset whenever I deploy an update through ClickOnce. I thought ClickOnce was supposed to handle this sort of thing for me but since it seems no, I implemented the .Upgrade()
with a Settings Flag like so:
if (Settings.Default.MustUpgradeSettings)
{
Settings.Default.Upgrade();
Settings.Default.MustUpgradeSettings = false;
Settings.Default.Save();
}
Which I check OnLoad()
. Am I missing something? This is seriously driving me nuts!
I have also posted this at MSDN, HERE, and they are even less help then SO so far. I just know that I will end up with "egg and my face in alignment" when this is all over I just wish someone could point that out for me...