so I have migrated my Xamarin app to MAUI. that means from UWP to WinUI in Windows. I was using Windows.Storage API Which works fine in Packagedapps (MSIX). However, shipping the app outside of the MS Store in that format is quite annoying (specifically the signing and sideloading.) Every user has to first trust my self-signed certificate and then install the app.
I would like to publish the app as an unpackaged version, but the Windows.Storage API is not supported in unpackaged apps due to package identity missing. So I can change it to System.IO.File
But already many users are using our app. So there might me data loss when I shift from windows.storage to system.IO.FIle . Is there any way I Can restore those old data stored using Windows.Storage?
As location path of windows.Storage and System.IO.File is different. I have no idea how to get back the information stored using windows.Storage as it is important data. Please suggests any ideal solution for this.
Windows.StorageAPI but obviously it won't be able to use methods related to packaging (likeWindows.ApplicationModel.AppInfo,Windows.ApplicationModel.Package,ApplicationData.Current.LocalFolder, etc.). From an unpackage app you can get the equivalent ofApplicationData.Current.LocalFolder, withPath.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Packages", MyOldPackageFamilyName, "LocalState")if it's what you're looking for.Windows.ApplicationModel.AppInfo.Current.PackageFamilyNamefrom your packaged/UWP version.