[UWP] [HTML]澄清将应用更新到UWP [英] [UWP][HTML]Clarifications Updating app to UWP

查看:61
本文介绍了[UWP] [HTML]澄清将应用更新到UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人澄清我如何将我的应用更新为UWP。我担心会为我当前的用户造成问题。我担心的是:1)新软件包不会删除当前数据; 2)用户仍然可以正确访问他们的IAP。

Please could someone clarify how I can update my app to a UWP. I am worried about causing issues for my current users. My two worries are 1) the new package wont delete current data and 2) the users can still correctly access their IAP's.

我开始使用HTML / JS通用Windows 8.1应用程序。

I am starting off with a HTML/JS Universal Windows 8.1 app.

到目前为止我所做的是,在当前的解决方案中增加了一个新的UWP项目。然后我将该项目链接到我当前的W8.1和WP8.1共享的.shared文件。然后我复制了相关文件,所以它目前与我的W8.1
应用程序完全相同作为起点。

What I have done so far, is in the current solution added a new UWP project. I have then linked that project to the .shared files that my current W8.1 and WP8.1 share. I have then copied over relevant files so it is currently exactly the same as my W8.1 app as a starting point.

下一步(部分我不确定)然后我将我的新UWP与商店中的当前应用程序包相关联。这使它正常工作,但我担心它会使旧的W8.1包失效。

The next step (and part I am unsure about) is I am then associating my new UWP with the current app package in the store. This makes it work correctly, but I am worried it will invalidate the old W8.1 package.

一切都好吗?谢谢!

推荐答案

你好rcbyrne,

Hello r.c.byrne,



请参阅从Windows运行时8移动到UWP。


Please see Move from Windows Runtime 8 to UWP.



>>下一步(我不确定的部分)是我将新的UWP与当前应用>>相关联包在商店里。这使它工作正常,但我担心它会使旧的W8.1软件包无效。


>>The next step (and part I am unsure about) is I am then associating my new UWP with the current app >>package in the store. This makes it work correctly, but I am worried it will invalidate the old W8.1 package.



1.你能详细解释这个吗?谈论应用数据存储?


1. Can you explain this in details are you perhaps talking about app data storage?

请参阅:
应用数据存储

当用户安装应用更新并删除时,系统会保留数据存储的内容。卸载应用程序时,这些数据的内容会完整而干净地存储。

The system preserves the contents of data stores when the user installs an update to your app and removes  the contents of these data stores completely and cleanly when your app is uninstalled.



您可以选择为应用程序版本化应用程序数据。这样您就可以创建未来版本的 您的应用更改了其应用数据的格式,而不会导致以前版本的应用出现兼容性问题。该应用程序检查数据存储中的应用程序数据的
版本,如果版本低于应用程序所期望的版本,则应用程序应将应用程序数据更新为新格式并更新版本。有关详细信息,请参阅Application.Version属性和ApplicationData.SetVersionAsync
方法。


You can optionally version the app data for your app. This would enable you to create a future version of  your app that changes the format of its app data without causing compatibility problems with the previous version of your app. The app checks the version of the app data in the data store, and if the version is less than the version the app expects, the app should update the app data to the new format and update the version. For more info, see the Application.Version property and the ApplicationData.SetVersionAsync method.



ApplicationData.SetVersionAsync | UWP api中也提供了setVersionAsync方法。所以我认为如果您对
数据进行了结构化更改,您可以使用此方法确保与您的UWP项目的兼容性。


ApplicationData.SetVersionAsync | setVersionAsync method is also available in the UWP api. so I think if you have structured changes to the data you can use this method to assure the compatibility with your UWP project.

有问候,

Krunal Parekh

Krunal Parekh


这篇关于[UWP] [HTML]澄清将应用更新到UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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