Installing Asp.Net SignalR error while installing

孤者浪人 提交于 2019-12-05 13:32:29

Try installing a different version of signal r with this command (via nuget package console) 'install-package Microsoft.AspNet.SignalR -Version 1.1.3'. Latest version of signalr requires .net4.5

I meet this issue and solving it by upgrade my project's target .Net Framework version to 4.6.1 (latest)

I stumble into the same problem and I give you some additional recommendations in case someone cannot solve it.

First at all, some libraries like SignalR are always working in tandem with last versions of the framework and some other libraries. It's normal you create a project targeting let's say OWin 2.1 and few months later in a package restore you get the last one upgrading everything.

Second, it's very normal to create a library with an older framework version by mistake or if you don't use the Visual Studio IDE you don't even realize some libraries target a different framework version. This is my case using SharpDevelop that created most of my Libraries pointing to C# 4.0.

Review every project in your solution; find online the dependencies of the project and the targets. Unfortunately, there's not any common pattern for this, SignalR doesn't publish the dependencies neither in the package manager or the GitHub project. https://github.com/SignalR/SignalR/releases

I had the same error, en VS 2013 with a web project 4.0 framework, I ran the 'install-package Microsoft.AspNet.SignalR -Version 1.1.3'command and the package has installed sussefull

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