【发布时间】:2016-04-28 13:02:51
【问题描述】:
执行命令时:
PM> Install-Package PushSharp -Version 2.2.1
我收到此错误:
安装包:找不到包“PushSharp”的版本“2.2.1”。 在行:1 字符:1 + 安装包 PushSharp -版本 2.2.1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我的环境是 Visual Studio 2013 Update 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
谢谢
【问题讨论】:
-
我可以在 VS 2015 中安装它——你可能需要更高的 .NET 版本吗?
标签: .net visual-studio nuget nuget-package pushsharp