Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过nuget安装NetMQ到xamarin项目时出错_C#_Visual Studio_Xamarin_Nuget_Netmq - Fatal编程技术网

C# 通过nuget安装NetMQ到xamarin项目时出错

C# 通过nuget安装NetMQ到xamarin项目时出错,c#,visual-studio,xamarin,nuget,netmq,C#,Visual Studio,Xamarin,Nuget,Netmq,我试图将NetMQ安装到我的xamarin应用程序中 由于NetMQ依赖于AsyncIO,因此无法安装此软件包,并显示以下错误: Could not install package 'AsyncIO 0.1.18'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not

我试图将NetMQ安装到我的xamarin应用程序中

由于NetMQ依赖于AsyncIO,因此无法安装此软件包,并显示以下错误:

Could not install package 'AsyncIO 0.1.18'. You are trying to install this 
package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111',
 but the package does not contain any assembly references or content files 
that are compatible with that framework. For more information, contact the package author.

如何重新解决此问题?

AsyncIO 0.1.18 NuGet包和NetMQ 3.3.3.1 NuGet包仅包含.NET 4.0和.NET 3.5的程序集,因此无法将其安装到可移植类库项目或Xamarin项目中

你的选择包括:

  • 将这些库移植到Xamarin框架
  • 仅在服务器端使用这些库。然后,您的Xamarin项目使用支持的方式连接到您的服务器,例如通过http发送json消息
  • 查找另一个支持Xamarin框架的库

  • NetMQ现在的目标是Xamarin IOS和Android,您可以在此处下载:


    谢谢,回答非常清楚,+1。您知道如何将这些库移植到Xamarin框架吗?好问题。首先,您可以尝试根据您正在使用的Xamarin框架编译它们。非常欢迎您观看:谢谢,+1在您的程序中以windows为目标。您是说windows phone?可能不是因为System.Net.Socket在windows Phone上不可用不,我是说windows UWP(通用windows平台)