Using SignalR on an asp.net Core app that targets the full .NET Framework

本秂侑毒 提交于 2019-12-08 06:40:56

问题


I have an existing ASP.net Core app that targets the full 4.6.1 .NET Framework instead of the .NETCore framework.

I need to know: is there ANY way to use SignalR on such an app? Reading around the net I found some people claimning to have fount workarounds, but I cannot find any details on exactly HOW to do it.

Any info on this subject is appreciated.


回答1:


Well, after a lot of searching I found a sample project that implements this. You can find it here:

https://github.com/jkells/signalr2-netcore-websockets-sample

I implemented their same solution on my project and it works! Read the info on the github Readme carefully: you have to add the repository they mention to your nuget sources in visual studio or packages won't restore correctly.



来源:https://stackoverflow.com/questions/45618771/using-signalr-on-an-asp-net-core-app-that-targets-the-full-net-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!