WP8.1 和 WP10 的区别 [英] WP8.1 and WP10 differences

查看:22
本文介绍了WP8.1 和 WP10 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Windows Phone 8.1,下一行运行良好,但现在当用户改用 Windows 10 手机时,设备出现故障.

With Windows Phone 8.1, next line worked well but now when users are changing to Windows 10 phones, devices are failing.

ProductLicense inAppLicense = CurrentApp.LicenseInformation.ProductLicenses["Keyfor"];

如前所述,可以很好地与 WP 8.1 配合使用,并且可以很好地读取和存储许可证信息.现在使用 Windows 10 手机,该行只会生成异常.

As mentioned worked with WP 8.1 nicely and license information was read and stored nicely. Now with Windows 10 phones, that line just generates exception.

来自 HRESULT 的异常:0x803F6107".

"Exception from HRESULT: 0x803F6107".

真实设备和模拟器的结果相同.

Same result with real devices as well with emulators.

那么,我如何在 WP 8.1 项目环境(即使用 8.1 项目制作的代码)的 Windows 10 手机中检查 LicenseInformation?

So, how can I check LicenseInformation from Windows 10 phones with WP 8.1 project environment (i.e code made with 8.1 projects)?

推荐答案

我在 Windows 10 通用应用中遇到了同样的问题.

I had the same problem in my windows 10 universal app.

我的解决方案是创建应用程序包以上传到商店.如果您运行此例程,它将在项目目录中创建一个 Package.StoreAssociation.xml 和一个 StoreKey.pfx 文件.这样做的先决条件是在商店中创建的应用程序.

The solution for me was App Package creation for upload to the store. I you run this routine, it will create a Package.StoreAssociation.xml and a StoreKey.pfx files in project directory. The prerequisite for this is that app created in store.

我猜应用程序需要这些文件才能从商店中正确的应用程序获取数据

I guess the app needs these files to get data from correct app in the store

这篇关于WP8.1 和 WP10 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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