3

I am trying to add the SignalR client to a Xamarin.Forms project.

I see that there are 2 packages, one for .Net and the other for .NetCore

Microsoft.AspNet.SignalR.Client

and

Microsoft.AspNetCore.SignalR.Client

The project that I am adding it to is a .Net Standard 2 project

But whenever I run the app, I get the following exception

Could not load file or assembly 'Microsoft.AspNet.SignalR.Client, Version=2.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:Microsoft.AspNet.SignalR.Client, Version=2.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type: member:(null) signature:

and

Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Client.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. assembly:Microsoft.AspNetCore.SignalR.Client.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 type: member:(null) signature:

David Pilkington
  • 13,528
  • 3
  • 41
  • 73

1 Answers1

4

The aspnet core version of signalr is not ready for Xamarin yet. See this.

François
  • 3,164
  • 25
  • 58
  • It is _supposedly_ ready now with Visual Studio 2017 15.8 Preview 3, although it has not fixed the issue for me, even on a fresh project. Some additional dependencies are required. See https://github.com/aspnet/Announcements/issues/305 – Brandon Rader Jun 27 '18 at 16:34