Hi @Brian Conrad ,
Thanks for reaching out.
There is not a Package.appxmanifest setting that can be added to explicitly preserve user data. For MSIX-packaged apps, Windows keeps app data only when the new package is recognized as an update to the same package identity.
The first thing I would verify is whether the MAUI package is using exactly the same package identity as the previous Xamarin package. In particular, compare the Identity Name, Identity Publisher, Package Family Name, Store association, and make sure the version number is higher.
If the name or publisher changed during the migration, Windows will treat the MAUI package as a different app rather than an update. In that case, the previous package may be removed as part of the replacement process, and its data under %LOCALAPPDATA%\Packages\<old package family name> may be removed as well. There is no manifest flag that can force Windows to preserve data across different package identities.
I would also recommend inspecting the actual .msixbundle that was submitted to the Store and checking the manifest inside the architecture package, especially x64. Sometimes the standalone .msix tested locally has the expected identity, but the submitted bundle contains a package built with a different identity or publisher.
You can check that with makeappx unbundle and makeappx unpack, then compare the <Identity ... /> element with the one from the previous Xamarin package.
It is also worth checking whether the data was actually deleted, or whether the MAUI app is now reading from a different location. If the Package Family Name stayed the same, the existing data should normally still be under %LOCALAPPDATA%\Packages\<PackageFamilyName>\LocalState.
Going forward, the safest approach is to publish the MAUI app using the exact same Store package identity as the Xamarin app, then handle any internal data migration in the first MAUI release if the storage layout or APIs changed. If the package that was already published used a different identity and the previous package was removed, recovering that local data is usually not possible unless the app had backup, export, or cloud sync in place.
Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.