我正在尝试将一些 .NET 代码移植到 Windows Phone 8.1(非 Silverlight)库中,但很长时间以来一直在钻研 System.Net.IPAddress
为什么不可用。
根据Windows Phone MSDN页面的说明,它似乎可用于 Windows Phone 8.1。
Version Information: Windows Phone OS Supported in: 8.1, 8.0, 7.1
Platforms: Windows Phone
而“常规”的MSDN页面 指出:
Version Information:
.NET for Windows Phone apps
Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1
Platforms: Windows Phone 8.1, Windows Phone 8,
然而,我无法在任何Windows Phone 8.1项目中访问System.Net.IPAddress
。但是,在Windows Phone Silverlight 8.1项目中可以访问。
我是否误读了文档?在我的Windows Phone 8.1项目中,是否需要引用其他内容?
(有趣的是,Windows Phone 8.1应用程序引用了.NET for Windows Store apps
和Windows Phone 8.1
,而Silverlight应用程序引用了.NET for Windows Phone
和Windows Phone
,因此我确定前者的可访问性更少,只是我没有看到文档中提到)