WP8.1和WP10差异 [英] WP8.1 and WP10 differences
问题描述
随着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.
所以,我怎么能检查 LicenseInformation
从Windows 10手机与WP 8.1项目环境(即8.1项目取得的代码)?
So, how can I check LicenseInformation
from Windows 10 phones with WP 8.1 project environment (i.e code made with 8.1 projects)?
推荐答案
我在我的窗户同样的问题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屋!