【发布时间】:2014-07-22 16:30:07
【问题描述】:
我有一台 SignalR 主机,运行 SignalR 1.1.3。 我已经使用 SignalR.Net.Client 成功为其创建了 Windows 窗体客户端,现在我也想创建一个 Windows 8.1 客户端。
我已经创建了新的通用应用程序项目(它为桌面和 Windows 手机创建应用程序)并使用 NuGet 包管理器控制台我已经安装了Install-Package Microsoft.AspNet.SignalR.Client -Version 1.1.3 命令成功完成,所以我开始编写代码,但仍然有行中的错误:
var _hubConnection = new HubConnection(url);
The type or namespace name 'HubConnection' could not be found (are you missing a using directive or an assembly reference?)
在检查了我的参考资料后,我发现没有 Microsoft.AspNet.SignalR.Client 参考资料。
我做错了什么,有什么方法可以在 Windows 8.1 应用程序上使用 SignalR 1.x?
提前谢谢你!
【问题讨论】:
标签: c# asp.net signalr windows-8.1