After updating to v9.0.21, the Preferences storage has been relocated from the LocalAppData folder to the AppData folder on the Windows platform. #26602
Closed
Description
Description
As stated in the docs, before v9.0.21, the Local AppData folder was used for storing preferences. Now, there has been a change in this behavior.
Before: %LocalAppData%\<publisher_display_name>\<app_id> (local profile)
After: %AppData%\<publisher_display_name>\<app_id> (roaming profile)
Now, two copies of Preferences are available and all the saved settings are written to a new file in a different location.
Steps to Reproduce
- Create a new .NET MAUI App
- Save something to the Preferences storage
- Read the saved value
- Set Windows as the platform target
- Run with version before 9.0.21 and then with 9.0.21
- Check the first comment for details
Link to public reproduction project repository
https://github.com/egvijayanand/maui-issue-26602
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.14 SR1.4
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041.0
Did you find any workaround?
NA
Relevant log output
Metadata
Assignees
Labels
Type
Projects
Status
Done