Proper way to upgrade WPF program settings on program update (Desktop Bridge/Project Centennial)
问题 When it was a clickonce program it worked, but then I made an appxpackage and exported it as a centennial app for windows store and the upgrade does not work any more. Right now I have in App.xaml.cs protected override void OnStartup(StartupEventArgs e) { if (myprog.Properties.Settings.Default.UpgradeRequired) { myprog.Properties.Settings.Default.Upgrade(); myprog.Properties.Settings.Default.UpgradeRequired = false; myprog.Properties.Settings.Default.Save(); } With UpgradeRequired as a bool