在执行命令时:
PM>安装-包PushSharp -Version 2.2.1
我得到了这个错误:
安装-软件包:无法找到软件包'PushSharp‘的2.2.1版本。一行:1字符:1+ PushSharp -Version 2.2.1 + CategoryInfo : NotSpecified:(:) Install-Package,InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,CategoryInfo
我的环境是Visual 2013更新5。
注意:我需要版本2.2.1,因为我的项目是旧的,在新的PushSharp版本4.x (这是我目前安装的PushSharp库)中缺少了一些库,比如PushBroker。
Dim push As PushBroker = New PushBroker() //This is giving error未定义"PushBroker“类型。
添加所有参考资料。这是我的进口品。
Imports PushSharp
Imports PushSharp.Google
Imports PushSharp.Apple
Imports Newtonsoft
Imports PushSharp.Core谢谢
发布于 2016-04-28 13:09:47
我可以在VS 2015中安装它--难道你需要一个更高的.NET版本吗?
否则,首先使用空解决方案尝试它,并将您的解决方案packages.config与空packages.config进行比较。也许是有冲突。
发布于 2016-05-10 08:54:00
在PushSharpVersion4.x中,您使用PushBroker作为ApnsBroker。请下载以下链接:https://libraries.io/nuget/PushSharp/4.0.10
https://stackoverflow.com/questions/36915528
复制相似问题