System.Net.Ping NuGet 安装错误 [英] System.Net.Ping NuGet Installation error

查看:20
本文介绍了System.Net.Ping NuGet 安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在具有 ARM 目标的 UWP 项目中使用 System.Net.Ping NuGet 引用.我想在 Windows 10 移动版中使用 Ping.

I would like to use System.Net.Ping NuGet reference in a UWP Project with ARM target. I want use Ping in Windows 10 Mobile.

我正在尝试使用Install-Package System.Net.Ping -Version 4.0.0",但我在最新预览中收到相同的消息(Install-Package System.Net.Ping -Pre)

I'm trying with "Install-Package System.Net.Ping -Version 4.0.0" but i get same message with lastest preview (Install-Package System.Net.Ping -Pre)

输出:

System.Net.Ping 4.0.0 为 UAP 中的 System.Net.Ping 提供了编译时参考程序集,Version = v10.0,但在 UAP 中没有程序集运行时兼容 win10-arm行:1 字符:1+ 安装包 System.Net.Ping -Version 4.0.0+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception+ FullQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

System.Net.Ping 4.0.0 provides a compile-time reference assembly for System.Net.Ping in UAP, Version = v10.0, but there is no assembly in Runtime compatible with win10-arm Line: 1 Character: 1 + Install-Package System.Net.Ping -Version 4.0.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : 一个或多个包与 UAP 不兼容,版本 = v10.0 (win10-arm)

Install-Package : One or more packages are not compatible with UAP, Version = v10.0 (win10-arm)

win10-arm-aot,win10-x64,win10-x64-aot....

Same message for win10-arm-aot,win10-x64,win10-x64-aot....

也许,我不能在 ARM 目标上使用这些库吗?

Maybe, can't i use these library with ARM target?

推荐答案

System.Net.NetworkInformation.Ping 类不受 UWP 支持,因为 UWP 尚不支持 ICMP.您可以暂时使用 winrt-vasily 作为解决方法.

System.Net.NetworkInformation.Ping class is not supported by UWP since ICMP is still not supported in UWP yet. You can use winrt-vasily as a workaround for now.

这篇关于System.Net.Ping NuGet 安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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