SignalR cannot be used with .Net Core

I'm trying to install SignalR using the NuGet package manager in my C # Asp.Net core project, but I get this error that SignalR is incompatible with the .net core, isn't that a supporter yet? or can I do something to make it work? (I use VS2017, if it was important to mention this). Mistake:

Restoring packages for D:\Test\Test.WebAPI\Test.WebAPI.csproj... Package Microsoft.AspNet.SignalR.Core 2.2.1 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.AspNet.SignalR.Core 2.2.1 supports: net45 (.NETFramework,Version=v4.5) Package Owin 1.0.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Owin 1.0.0 supports: net40 (.NETFramework,Version=v4.0) Package Microsoft.Owin 2.1.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.Owin 2.1.0 supports: - net40 (.NETFramework,Version=v4.0) - net45 (.NETFramework,Version=v4.5) Package Microsoft.Owin.Security 2.1.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.Owin.Security 2.1.0 supports: net45 (.NETFramework,Version=v4.5) One or more packages are incompatible with .NETCoreApp,Version=v1.1. Package restore failed. Rolling back package changes for 'Test.WebAPI'. 

UPDATE:

SignalR for ASP.Net Core is currently (01.01.2018) available in NuGet as an alpha version.

https://www.nuget.org/packages/Microsoft.AspNetCore.SignalR/

+7
asp.net-core .net-core signalr
source share
6 answers

SignalR 2 is for the .NET Framework, not the .NET Core. They are still working on SignalR for .NET Core.

An old version in the main ASP.NET roadmap shows SignalR as part of ASP.NET Core 1.2. the latest version does not reference SignalR (or any of the frameworks), but a mention of 1.2 is planned for Q2 2017.

There's a video where guys at Microsoft discuss SignalR in ASP.NET Core. It is an hour, so I will not look after him. But maybe some useful information is there.

+11
source share

I am currently working on a .net core / angular 4 project using signalr.

There are several seed examples on Google, but one thing that most people trying to load signalr through nuget can turn off is the fact that it is a different batch repo - you need to update Nuget.config in your solution for the link, the more the repo bleeds:

 <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" /> <add key="NuGet" value="https://api.nuget.org/v3/index.json" /> </packageSources> </configuration> 
+4
source share

SignalR for asp.net core

This package is for the standard .net 2.0 standard and is still in alpha state.

It does not look like a stable release is coming up to the .net 2.1 standard.

enter image description here

Packages can be found on myget .

If you load the balance of your signalr concentrator, you can use redis as a backpane.


SignalR for asp.net

And there is also a SignalR package for the .net platform, which allready has a stable version. It can be found on nuget .

The following backpane types are supported for load balancing :

  • Azure service bus
  • Redis
  • SQL Server

SignalR.Server for asp.net core (09/18/2017 update: no longer available)

Do not use this package!

This is an obsolete package that targets .net 4.5.1 and .net standard 1.6. No stable package will and will never be released.

Preview packages can be found on myget .

If you load the balance of your signalr concentrator, you can use the sql server as a backpane. (But implementation aborted )

+3
source share

It is right. SignalR is built on OWIN, which is compatible with the asp.net core if you are aiming for a complete framework, but not a dotnet core.

+2
source share

I recently ported an MVC5 application that used SignalR in ASP.NET Core 1.1 ( netcoreapp1.1 ). I found an unofficial package ( Gray.Microsoft.AspNetCore.SignalR.Server ) that worked almost without any changes in my existing code.

Csproj file

 <PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="1.0.2" /> <PackageReference Include="Gray.Microsoft.AspNetCore.SignalR.Server" Version="0.2.0-alpha1" /> 

Launch - ConfigureServices Method

 services.AddSignalR(); 

Launch - Customize Method

 app.UseWebSockets(); app.UseSignalR(); 
+1
source share

The following packages can be found on NuGet.

Microsoft.AspNetCore.SignalR 1.0.0-alpha1-final Components for real-time bidirectional communication on the Internet.

Microsoft.AspNetCore.SignalR.Redis 1.0.0-alpha1-final Redis for Core SignalR for ASP.NET.

Supported packages .NETSTandard, Version = v2.0 Now. I used packages in my projects. Angular 4 + SignalR

0
source share

All Articles