Skip to content

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
@egvijayanand

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

  1. Create a new .NET MAUI App
  2. Save something to the Preferences storage
  3. Read the saved value
  4. Set Windows as the platform target
  5. Run with version before 9.0.21 and then with 9.0.21
  6. 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

No one assigned

    Labels

    area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoi/regressionThis issue described a confirmed regression on a currently supported versionplatform/windows 🪟s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions