Hello,
I'm writing a console app in Winform with Visual Studio 2019. I want the user settings to persist every time I release a new version. I'm using this piece of code to do that.
if (Properties.Settings.Default.UpgradeRequired)
{
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.UpgradeRequired = false;
Properties.Settings.Default.Save();
}
However, the settings are reverted back to the default values every time. In addition, I noticed that my app installation folder changes for every release (the HASH part) and the version number is not included. For example, this is what the path looks like.
C:\Users\xxx\AppData\Local\Apps\2.0\M9RKB9NV.1QT\XYMMZD4C.RLW\m7qu..tion_14d5d5ddec12ce36_0001.0000_2b5649f39c6c7441
I did sign the ClickOnce manifests with a Test certificate. I also set the version number to increase automatically every release. (Please ask me if you need more information regarding my project properties).
Please help me with this issue. Thanks in advance.