GeneralZaphod
Member
- Joined
- Jun 18, 2019
- Messages
- 6
- Programming Experience
- 10+
All,
My team and I have been fighting a Settings problem for a long time with no resolution. Essentially, most of the time when the build changes, even slightly, an upgrade of the settings file results in the settings being some older, seemingly random version. This is very clear because we see things we know where set some way before, but are no longer. Based on observation over time, this randomness "may" result in the most recent being used. Sometimes it is many revisions back. This is absolutely confounding. I have searched over and over looking for answers. Originally, we were calling upgrade every time, but found that we could add a version check and only upgrade when the version changes. So, when we change versions we do:
if (GetLastRevision() != GetAppVersionString())
{
Settings.Default.Upgrade();
SetLastRevision(GetAppVersionString()); // Now that this will save all settings too.
return true;
}
I so hope somebody has a fix for this. It is really killing us. Your help is super appreciated!!!
-GZ
My team and I have been fighting a Settings problem for a long time with no resolution. Essentially, most of the time when the build changes, even slightly, an upgrade of the settings file results in the settings being some older, seemingly random version. This is very clear because we see things we know where set some way before, but are no longer. Based on observation over time, this randomness "may" result in the most recent being used. Sometimes it is many revisions back. This is absolutely confounding. I have searched over and over looking for answers. Originally, we were calling upgrade every time, but found that we could add a version check and only upgrade when the version changes. So, when we change versions we do:
if (GetLastRevision() != GetAppVersionString())
{
Settings.Default.Upgrade();
SetLastRevision(GetAppVersionString()); // Now that this will save all settings too.
return true;
}
I so hope somebody has a fix for this. It is really killing us. Your help is super appreciated!!!
-GZ