1

I tried to install NetMQ to my xamarin application.

Because NetMQ depends on AsyncIO, this package could not be installed and show me the following error:

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.

How can I reesolve this issue?

ProEns08
  • 1,856
  • 2
  • 22
  • 38

2 Answers2

2

The AsyncIO 0.1.18 NuGet package and the NetMQ 3.3.3.1 NuGet package only contain assemblies for .NET 4.0 and .NET 3.5 so you cannot install it into a portable class library project nor a Xamarin project.

Your options include:

  1. Port those libraries to the Xamarin frameworks.
  2. Only use these libraries on the server side. Your Xamarin project then connects to your server using a supported way, such sending json messages over http.
  3. Find another library that does support the Xamarin frameworks.
Matt Ward
  • 47,057
  • 5
  • 93
  • 94
  • Thanks, very clear answer, +1. did you know how to port those libraries to the Xamarin framework. – ProEns08 May 10 '16 at 15:24
  • Good question. As a start you could try compiling them against the Xamarin framework you are using. – Matt Ward May 10 '16 at 15:28
  • I formulated this in a question to be more clear. You are very welcome to see it: http://stackoverflow.com/questions/37143070/using-zeromq-in-xamarin – ProEns08 May 10 '16 at 15:35
1

NetMQ now target Xamarin IOS and Android, you can download here:

https://www.nuget.org/packages/NetMQ/4.0.0.3-rc3

somdoron
  • 4,653
  • 2
  • 16
  • 24