'XXX' 在執行命令:無法找到包版本的 'PushSharp'
PM> Install-Package PushSharp -Version 2.2.1
我收到此錯誤:
Install-Package : Unable to find version '2.2.1' of package 'PushSharp'. At line:1 char:1 + Install-Package PushSharp -Version 2.2.1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我的環境是Visual Studio的2013更新5
注意:我需要版本2.2.1因爲我的項目是舊的,某些庫在新推Sharp版本4.x(這是我目前安裝的PushSharp庫),如PushBroker
。
Dim push As PushBroker = New PushBroker() //This is giving error
Type "PushBroker" is not defined.
所有引用添加。這是我的進口產品。
Imports PushSharp
Imports PushSharp.Google
Imports PushSharp.Apple
Imports Newtonsoft
Imports PushSharp.Core
感謝
我可以在VS 2015中安裝它 - 難道你需要更高版本的.NET? – weismat