无法找到的System.Net.Sockets组装WP 8.1 [英] Cannot find System.Net.Sockets assembly for WP 8.1

查看:143
本文介绍了无法找到的System.Net.Sockets组装WP 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个可以作为一个远程控制我的musicplayer的应用程序。我刚刚完成写了一个漂亮的图书馆为我的代码,我刚才注意到没有所谓的System.Net.Sockets Windows Phone的8.1组装?
必须有一个解决方案,但我不能找到它。 ?有谁知道我如何能够将其导入到我的项目

I'm trying to create an app which works as a remote-control for my musicplayer. I've just finished written a nice library for my code and I just now noticed there is no assembly called System.Net.Sockets for Windows Phone 8.1? There must be a solution to this, but I just cannot find it. Does anyone know how I might be able to import it to my project?

推荐答案

据的微软,你应该使用 Windows.Networking.Sockets 而不是:

According to Microsoft, you should be using Windows.Networking.Sockets instead:

Windows运行时API,Windows.Networking.Sockets,一直通过
为Windows手机8.已作为一款Windows Phone
运行时API,因此很容易在任何支持你选择的编程
语言的使用。虽然我们加强了.NET API,
的System.Net.Sockets,以支持更多的功能,如IPv6和监听
插座,你应该考虑使用socket编程
,因为新的API它比.NET API更加便于携带。
Windows.Networking.Sockets已经从地上爬起来,为
清洁,安全和易于使用的强制实施最佳实践的API。

The Windows Runtime API, Windows.Networking.Sockets, has been adopted for Windows Phone 8. It has been implemented as a Windows Phone Runtime API, making it easy to use in whatever supported programming language you choose. Although we've enhanced the .NET API, System.Net.Sockets, to support more features such as IPv6 and listener sockets, you should consider using the new API for sockets programming because it is more portable than the .NET API. Windows.Networking.Sockets has been built from the ground up to be clean, secure, and easy-to-use APIs that enforce best practices.

在WinRT中,这是你需要做什么。这里有一个回答为进一步阅读相关的问题。

In WinRT, this is what you need to do. Here's an answer to a related question for further reading.

这篇关于无法找到的System.Net.Sockets组装WP 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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