-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-Contained App Crashes When Using ApplicationDataContainer #2621
Comments
The Good feature request, though - "where should I store my data for apps that aren't strictly speaking installed?" I'd suggest something under |
You can strike 'easy'. ApplicationData requires package identity as the data store is created when the package is registered. If you're not packaged then no package registration thus no ApplicationData data store thus ApplicationData[Manager] APIs won't work. The recommended options:
|
Discussed in #2618
Originally posted by anlocnghg June 13, 2022
My app previously used 'framework-dependent' deployment (it installed in an user local app folder and could be distributed via Microsoft Store). However, due to our organization's requirements that only xCopy deployment is allowed, meaning self-contained app. I followed the instruction (Link), everything initially was okay. Only until I started using the ApplicationDataContainer, for example:
I know that since the xCopy deployment (self-contained app), there is no user local storage folder for the installed app. I would like to ask what is the best way to walkaround this issue to be able to reuse to ApplicationDataContainer, or any other app settings container API?
Thank you very much!
Below is steps to reproduce the crash:
var localSettingContainer = Windows.Storage.ApplicationData.Current.LocalSettings;
The text was updated successfully, but these errors were encountered: