Cannot add Signalr Client library as portable library to Xamarin project

I tried to add the Signalr Client Library and WebApi client to my Xamarin solution (on Visual Studio with Xamarin support, as well as on Xamarin Studio), but I always get this error, although I can install other PCLs (for example, Microsoft.Net.Http) :

Could not install package 'Microsoft.AspNet.WebApi.Client 5.2.3'. You are trying to install this package into a project that targets 'portable-net45+sl50+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10', 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. 

and the following error when adding Signalr:

 Adding Microsoft.AspNet.SignalR.Client... Adding 'Microsoft.AspNet.SignalR.Client 2.2.0' to Corda.Client. Could not install package 'Microsoft.AspNet.SignalR.Client 2.2.0'. You are trying to install this package into a project that targets 'portable-net45+sl50+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10', 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. 

I also tried to change the target structure with failure. This is the build setup for my project: Project settings

and this is my folder C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework.NETPortable \ v4.5 \ Profile \ Profile259 \ SupportedFrameworks: PCL profiles folder

I get the same errors on both Mac OSX and Windows 10. Any ideas?

+4
source share
4 answers

Using Profile78 solved my problem. Full explanation here . enter image description here

+2
source

A simple workaround that worked with my Xamarin with VS:

The problem is not in the DLL files, but with the installer (nuget).

0
source

The problem is with the nuget package manager, in particular with the Windows Phone 8.1 project. I think he expects this to be a windows silver silverlight 8.1 project. There is an error in the xamarin project when installing the signalr client on a universal project with 8.1 phones. It should be sorted in the next xamarin release. Deselecting Windows Phone 8.1 in the portable configuration solves the problem, which means that you have to take the Windows Phone 8.1 project from the xamarin project and you need to create a universal Windows 10 project.

0
source

Yes, as suggested by others, this is a nuget package manager problem. According to this link, it should be fixed with the version of Microsoft.signalr.client 2.2.1, but for now you still want to go with nuget, add below the zero source https://www.myget.org/F/aspnetwebstacknightly/ to visual studio and install the preliminary version 2.2.1 pre-160523-b816 from the dll signalr client, as shown in the following link https://github.com/SignalR/SignalR/issues/3393

0
source

All Articles