hockeyapp在xamarin.forms应用程序中的UWP上引发异常 [英] hockeyapp throws exception on UWP in xamarin.forms application

查看:187
本文介绍了hockeyapp在xamarin.forms应用程序中的UWP上引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我现在尝试在模拟器和本地win10机器上使用uwp应用程序时,我在android和ios中成功使用了hockeyapp.作为缺少"'Windows.System.Profile.HardwareIdentification'.":"Windows.System.Profile.HardwareIdentification""

I was using hockeyapp successfully in android and ios when I now try to use it uwp application on emulator and local win10 machine. It throws as exception for missing " 'Windows.System.Profile.HardwareIdentification'.":"Windows.System.Profile.HardwareIdentification""

我的UWP版本如下

我的应用程序是xamarin.forms应用程序.这是我安装的

my application is an xamarin.forms application. here is what I installed

  • XF项目:HockeySDK.Xamarin,HockeySDK.Core
  • UWP项目:HockeySDK.Core,HockeySDK.UWP

在UWP项目的MainPage.xaml.cs的构造函数中,我添加了

In the constructor of MainPage.xaml.cs in UWP project I have added

 Microsoft.HockeyApp.HockeyClient.Current.Configure(HockeyAppID);

在尝试捕获函数中的XF项目中,我按如下所示触发TrackException

in XF project within try catch functions I fire TrackException as below

catch (Exception ex)
                {
                Dictionary<string, string> properties = new Dictionary<string, string>();
                properties.Add(key, value);
                Microsoft.HockeyApp.HockeyClient.Current.TrackException(ex, properties);
                }

搜索时,我只会找到

when I search for it, I only find posts like this one which shows how to get HardwareIdentification but I thought hockeyapp should fetch it for me and it does on android. what is wrong with UWP? Do I have to do it myself if yes where should I pass this information? Or could be that something is wrong with my win10 installation :)

推荐答案

我终于找到了我的问题的答案.尽管我的uwp与映像中的最低和最高版本相同,并且已经安装了sdk 14393.

I finally found an answer to my question. although my uwp was cofigured with min and max version as in the image and I had sdk 14393 was installed.

显然这还不够.如果您没有SDK.发布于2015年11月.(版本10.0.10586.212),将不会为Windows.System.Profile.ProfileHardwareTokenContract.winmd生成任何文件,如下图所示.一旦我也安装了这个sdk,就成功创建了文件.

obviously it is not enough. if you dont have SDK. Released November 2015. (Version 10.0.10586.212), there will be no file generated for Windows.System.Profile.ProfileHardwareTokenContract.winmd as shown in the image below. once I installed this sdk as well, file was successfully created.

使用hockeyapp,xamarin洞察力,应用程序洞察力等,该文件看起来很有必要,因为它们需要识别设备.以后,当您要将应用程序运送到Windows应用商店时,也很有必要.我希望这对某些人有帮助

This file looks like necessary using hockeyapp, xamarin insight, application insight etc. because they need to identify the device. It is also necessary later when you want to ship your app to the windows store. I hope that this helps some people

这篇关于hockeyapp在xamarin.forms应用程序中的UWP上引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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