I have a NET6 project which is built part of a larger NET6 ASP.NET solution. The project still references:
- Microsoft.AspNetCore.SignalR, and
- Microsoft.AspNetCore.SignalR.Core
Which have now been marked as deprecated.
What packages do I need to install for their replacement?
CodePudding user response:
Server-side SignalR is nowadays a part of the NET base class library. You don't need any server-side packages. The Microsoft.AspNetCore.SignalR namespace classes are just there.
However, you need the client-side package, the @microsoft/signalr@latest.
In case of further issues, please consult the documentation.
CodePudding user response:
SignalR is included in the Microsoft.AspNetCore.App shared framework (docs). Change the console app SDK to "Microsoft.NET.Sdk.Web:
<Project Sdk="Microsoft.NET.Sdk.Web">
...
</Project>
