应用升级后保留用户数据 [英] Keeping user data after an app upgrade

查看:141
本文介绍了应用升级后保留用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows Phone应用程序需要在xml文件中保存一些用户数据/设置但是当我升级并安装此应用程序的新版本时,数据被销毁和重置。升级
我的应用程序(从版本到更新版本)时,如何以xml格式保留数据/设置?

I have a Windows Phone application which needs to save some user data/settings in a xml file BUT when I upgrade and install a new version of this application, the data are destroyed and reset. How can I preserve data/settings in a xml format when upgrading my application (from a version to a newer) ?

提前感谢您的帮助,

Sincerly,

Domi。

推荐答案

您如何测试升级?一旦您点击Rebuild,当您通过Visual Studio进行部署时,它将在下一次部署时清除隔离存储。但是,当您通过商店进行部署时,不会发生这种情况。您可以使用Store的Beta功能创建应用程序的Store Beta
并首先从那里安装旧版本然后更新Beta版来测试。存储在应用程序存储空间中的所有数据都将保留。
How are you testing the upgrade? When deploying via Visual Studio as soon as you once hit Rebuild it will clean Isolated Storage on the next deployment. This won't however happen when you deploy via the Store. You can test this by creating a Store Beta of your App using the Store's Beta feature and first installing the old version from there and then doing an update of the Beta. All data that resides on the App's storage space is preserved.


这篇关于应用升级后保留用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆