Last post Oct 15, 2013 08:15 AM by sandygettings
Oct 05, 2013 08:42 PM|sandygettings|LINK
Probably a dumb question here, but I'm not having any luck. I have to roll back to an earlier version of the AjaxControlToolkit. With NuGet, I'll need to execute a PowerShell command to do so. But when I try the following command,
Install-Package AjaxControlToolkit -Version 7.0725
NuGet says it can't find the version, but it's clearly available on the NuGet Gallery (http://www.nuget.org/packages/AjaxControlToolkit/7.0725). Here's the error:
PM> Install-Package AjaxControlToolkit -Version 7.0725
Install-Package : Unable to find version '7.0725' of package 'AjaxControlToolkit'.
At line:1 char:16
+ Install-Package <<<< AjaxControlToolkit -Version 7.0725
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I'm probably missing something obvious. At worst, I can install the toolkit the manual way, but I'd like to stick with NuGet if I can. Suggestions?
Oct 06, 2013 09:54 PM|jats_ptl|LINK
The powershell command Install-Package has a Version argument that can be used to specify a specific version.
Install-Package Common.Logging -Version 1.2.0
See the command reference for details.
Edit: In order to list versions of a package you can use the Get-Package command with the remote argument and a filter:
Get-Package -ListAvailable -Filter Common.Logging -AllVersions
By pressing tab after the version option in the Install-Package command, you get a list of the latest available versions.
Hope this helps.
Oct 07, 2013 12:06 AM|chetan.sarode|LINK
Oct 07, 2013 08:05 AM|sandygettings|LINK
Thanks, but please see my original post. I included the Version argument to no avail. Am I missing something?
Oct 15, 2013 03:10 AM|Happy Chen - MSFT|LINK
hi sandygettings ,
From what i understand you want to find your missing something.
i would suggest you read the links:
Error 1 NuGet Package restore failed for project xyz: Unable to find version '7.0123' of package 'AjaxControlToolkit'
i hope it helps you.
Oct 15, 2013 08:15 AM|sandygettings|LINK
Thanks, Happy, this looks like the best explanation. I won't need to test, since the newer version of the ACT works fine now. Cheers!