本文介绍了Windows Phone 8.1 与 Windows Phone Silverlight 8.1 - MSDN 上是否缺少文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一些 .NET 代码移植到 Windows Phone 8.1(不是 Silverlight)库中,现在我一直在努力理解为什么 System.Net.IPAddress 不可用.

I'm attempting to port some .NET code to a Windows Phone 8.1 (not Silverlight) library and have been banging my head against the wall for a while now trying to understand why System.Net.IPAddress wasn't available.

根据 Windows Phone MSDN 页面,它似乎可用于 Windows Phone 8.1

According to the Windows Phone MSDN page, it appears to be available for 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 项目访问它.

Yet I cannot access System.Net.IPAddress in any Windows Phone 8.1 project. I can access it a Windows Phone Silverlight 8.1 project.

我是否误读了文档?在我的 Windows Phone 8.1 项目中,我可能需要参考一些额外的东西吗?

Am I misreading the documentation? Is there something extra I might need to reference in my Windows Phone 8.1 project?

(有趣的是,Windows Phone 8.1 应用程序引用 .NET for Windows Store 应用程序Windows Phone 8.1 并且 Silverlight 应用程序引用 .NET for Windows PhoneWindows Phone 所以我确定第一个不太容易访问 - 只是我看不到文档中提到的内容)

(It's interesting that Windows Phone 8.1 app references .NET for Windows Store apps and Windows Phone 8.1 and the Silverlight app references .NET for Windows Phone and Windows Phone so I'm sure the first has less accessible to it - it's just that I can't see that mentioned in the documentation)

推荐答案

你只是看错地方了.Windows Phone 8.1 是 Windows Runtime 应用,与 Windows Phone Silverlight 无关,必​​须面向 Windows Store Apps API.

You just look in the wrong place.Windows Phone 8.1 is a Windows Runtime app, which is nothing to do with Windows Phone Silverlight, you must be oriented to Windows Store Apps API.

Windows 运行时应用的 System.Net

Windows Phone 8.1 的功能应用程序和 Windows Store App 应该是一样的,所以你不能把任何东西从 Windows Phone Silverlight 绑定到 Windows Store App,如果它们不合适

For functional applications for the Windows Phone 8.1 and Windows Store App should be the same, so you just can not tie anything from Windows Phone Silverlight to Windows Store App if they are not suitable

在这里您可以查看完整的差异列表.

Here you can look full list of differences.

这篇关于Windows Phone 8.1 与 Windows Phone Silverlight 8.1 - MSDN 上是否缺少文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 14:37