-1

我正在尝试通过 Nuget 在空白的 Windows Store 应用程序中安装 SignalR

Install-Package Microsoft.AspNet.SignalR -pre

但我收到了这个错误消息:

Install-Package : Could not install package 'Microsoft.AspNet.SignalR.Core 1.0.0-rc2'. You are trying to install this package into a 
project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that 
framework. For more information, contact the package author.

如何在 Windows 应用商店应用中安装 SignalR?

4

2 回答 2

3

该错误提供了解决此问题所需的线索。您不能在 Windows App Store 应用程序(它是 SignalR 服务器)中使用整个 SignalR 包。

包/组件概述:

https://github.com/SignalR/SignalR/wiki/Package-Overview

你需要客户端:

http://nuget.org/packages/Microsoft.AspNet.SignalR.Client

于 2013-01-20T20:59:44.847 回答
0

您需要为 Windows 商店应用程序安装 Signalr 客户端。您可以通过安装以下软件包 Install-Package Microsoft.AspNet.SignalR.Client -pre 来做到这一点,它将安装

于 2013-01-21T22:22:57.053 回答