Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage NuGet Packages revert jquery to old version [duplicate]

I have updated the jquery version 2.0 but i found that this is not compatible with ie7 and 8 now i want to revert to old version 1.9.0. When i try to install this with Nuget console it gives me error that already new version is installed.

install-package jquery -version 1.9.0
Successfully installed 'jQuery 1.9.0'.
Install failed. Rolling back...
Install-Package : Already referencing a newer version of 'jQuery'.
At line:1 char:16
+ install-package <<<<  jquery -version 1.9
+ CategoryInfo          : NotSpecified: (:) [Install-Package],     InvalidOperationException
 + FullyQualifiedErrorId :NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
like image 285
Altaf Sami Avatar asked Jun 14 '13 07:06

Altaf Sami


People also ask

How do I get an older version of a NuGet package?

Right click on your project and *go to Manage NuGet Packages. Look at the below image. Select your Package and Choose the Version , which you wanted to install.

How do I copy a NuGet package from one solution to another?

Open the Package Manager UI - Right-click on References and select Manage NuGet Packages... Open the Package Manager Console - From Tools > NuGet Package Manager , select Package Manager Console. Run NuGet restore - Right-click on the solution node in the Solution Explorer and select Restore NuGet Packages.


1 Answers

Try uninstalling the 2.0 version first:

Uninstall-Package [yourpackage] -Force

Then reinstalling the older package:

install-package jquery -version 1.9.0

like image 85
aiapatag Avatar answered Sep 21 '22 14:09

aiapatag