dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.11k stars 1.73k forks source link

Updating to .NET MAUI 6.0.486 clears Preferences to Type Defaults on WinUI #9210

Closed dg2k closed 2 years ago

dg2k commented 2 years ago

Description

As described in the title, and more details here.

This is also confirmed (in same link provided) by a Microsoft employee who answered a question relating to the issue.

Steps to Reproduce

No coding steps are relevant here for reproduction.

Simply update to Maui 6.0.486 with Visual Studio ver 17.3.0 Preview 6.0.

No similar issues with version 6.0.419 and previous.

Version with bug

6.0.408 (current)

Last version that worked well

6.0.400

Affected platforms

Windows

Affected platform versions

Windows 10 SDK

Did you find any workaround?

Yes, but would be messy. The issue is that of settings supposed to be persisted being not persisted which can have serious consequences.

This may also affect?? SecureStorage secrets based on Preferences?? but I haven't checked this one.

Relevant log output

No response

u1-kino commented 2 years ago

https://github.com/dotnet/maui/commit/8bbb7cb9f0f12e9c0899193a9cc220e7a4d48afb

image

I'm guessing this commit introduced the problem.

jfversluis commented 2 years ago

Duplicate of #9338 and fixed with #9361