我正在使用通过NuGet安装的SignalR 0.5.3作为我的.NET 4.5 Web应用程序 - 现在,因为我需要从SQL SERVER 2008R2推送数据(仅支持.NET Framework 3.5),我需要使用SignalR .NET 3.5 Client创建一个库。
我在project website中看到可能有一个SignalR.Client.NET35版本但是(对github和NuGet都不是很熟悉)我不知道如何为库项目安装该客户端我必须继续努力。
我尝试使用std命令install-package SignalR.Client
进行安装,但我收到的消息是:
Install-Package : Could not install package 'SignalR.Client 0.5.3'.
You are trying to install this package into a project that targets
'.NETFramework,Version=v3.5', but the package does not contain any assembly
references that are compatible with that framework.
For more information, contact the package author.
所以看起来没有正确选择正确的.NET版本/开箱即用。
在困扰作者之前,我想在这里试一试。 有什么建议吗?
答案 0 :(得分:3)
我们尚未将3.5客户端打包到包中。你需要从源代码构建。
答案 1 :(得分:0)
我将v1.x和v2.x SignalR客户端向后移植到NET 3.5。在此处以NuGet包的形式提供:http://www.nuget.org/packages/Nivot.SignalR.Client.Net35/