Is it possible to use ASP.NET SignalR on .NET Core( .NET 6 or over)

250 views Asked by At

Is it possible to use legacy ASP.NET SignalR legacy ASP.NET SignalR on .NET Core project? I am not asking how to use new version of ASP.NET Core SignalR. We want to upgrade our project from .NET Framework 4.8 to .NET 6. And it is using currently using ASP.NET SignalR. We want to keep ASP.NET SignalR because we cannot update client version of SignalR for some reason.

1

There are 1 answers

0
Md Farid Uddin Kiron On BEST ANSWER

Is it possible to use legacy ASP.NET SignalR legacy ASP.NET SignalR on .NET Core project?

Actually,during the latest release of SignalR there's a lot of improvements so yeah, directly using the legacy ASP.NET SignalR (prior to ASP.NET Core SignalR) in a .NET Core or .NET 6 project is not officially supported. ASP.NET SignalR and ASP.NET Core SignalR have different architectures, and ASP.NET Core was designed to be more modular, cross-platform, and compatible with the .NET Standard.

So, here's the thing, If you're working on a .NET Core project, it is recommended to use ASP.NET Core SignalR rather than the legacy version. However, if you have specific reasons to use the legacy ASP.NET SignalR in a .NET Core project, you might encounter compatibility issues and limitations.

We want to keep ASP.NET SignalR because we cannot update client version of SignalR for some reason.

Well you can do that, beside please note that using older versions of SignalR along with newer one may have downsides, including missing out on the latest features, security patches, and long-term support. It's generally recommended to keep your technologies up to date to benefit from improvements and security updates.

Please check the below description carefully:

enter image description here

Note: I would highly recommend you to refer to this official document before moving further.