本文介绍了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(版本= v10.0)中的System.Net.Ping提供了编译时参考程序集,但该程序中没有程序集与Win10-arm兼容的运行时行:1字符:1+安装软件包System.Net.Ping-版本4.0.0+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:未指定:(:) [Install-Package],异常 + FullyQualifiedErrorId: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 inRuntime compatible with win10-armLine: 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 target一起使用吗?

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

推荐答案

System.Net.NetworkInformation.Ping类,因为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安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 00:09