Forum Discussion
ChuckBohling
Jan 20, 2021Copper Contributor
WPF/MSIX application settings not getting updated when new version of the app is installed
I have a WPF app that I'm packaging and publishing (side-loading) with MSIX. Application settings are saved in a class that's derived from ApplicationSettingsBase. When the app is installed and runs,...
KevinLa_ms
Microsoft
Feb 11, 2021Hey ChuckBohling
I was looking up what might be happening, and found this post. Saving User Settings on Version Update (microsoft.com)
The comment towards the end suggests that if you are switching between debug and retail the paths may not be the same. Can you verify that both apps are built retail?
Thanks
Kevin
ChuckBohling
Feb 18, 2021Copper Contributor
KevinLa_ms Thanks for the finding that post. Unfortunately, it didn't help.
For my tests, I used Visual Studio 2019 and published (side-loaded) my app as MSIX. The app was built in release (retail?) mode. I first built, published and installed version 1.0.0.0 then built, published and updated version 1.0.1.0. After the update, my LocalCache has two user.config files (1.0.0.0 and 1.0.1.0) but in different directories.