The type or namespace name 'Ping' could not be found, although there is a dependencie and a using

后端 未结 1 776
鱼传尺愫
鱼传尺愫 2020-12-20 07:27

I am creating a little program to ping a computer within a network. For this i am trying to use the class ping, from

namespace System.Net.NetworkInformatio         


        
相关标签:
1条回答
  • 2020-12-20 07:41

    The problem is that Ping is not in the System.Net.NetworkInfomation package (does that package even exist?) for CoreCLR (aspnetcore50).

    According to the package search website, you need to add a reference to the System.Net.Utilities package.

    0 讨论(0)
提交回复
热议问题