Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Settings don't retain on application update for desktop apps (WPF) #166

Open
ajaywhiz opened this issue Mar 17, 2021 · 3 comments
Open

Settings don't retain on application update for desktop apps (WPF) #166

ajaywhiz opened this issue Mar 17, 2021 · 3 comments

Comments

@ajaywhiz
Copy link

ajaywhiz commented Mar 17, 2021

Bug Information

Version Number of Plugin: 3.1.1
Device Tested On: Windows 10 build 1903
Simulator Tested On:
Version of VS: VS 2019 16.8.5
Version of Xamarin:
Versions of other things you are using: .NET Standard 2, WPF, .NET 4.7.2

Steps to reproduce the Behavior

Expose settings from a library built on .NETSTANDARD 2.0
Consume it in WPF application
Install the application
Have the application save some settings
Update the application by running the installer

Expected Behavior

The application should be able to read the settings saved by previous version.

Actual Behavior

The path to save the settings changes every time a new version is built. This results in failure of retaining the settings saved by previous version of the application

Code snippet

Screenshots

image

@jamesmontemagno
Copy link
Owner

jamesmontemagno commented Mar 17, 2021

Hmmmm I use -> https://docs.microsoft.com/en-us/dotnet/api/system.io.isolatedstorage.isolatedstoragefile.getuserstorefordomain?view=net-5.0 so not sure how to change that.

I am open to changes @Clancey I think added this originally....

@Clancey
Copy link
Contributor

Clancey commented Mar 17, 2021

@ajaywhiz
Copy link
Author

are you planning to try out getuserstoreforapplication? @jamesmontemagno / @Clancey

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants