1

My NuGet is playing up and will not list or search any online packages. I get the error:

Specified argument was out of the range of valid values. Parameter name: supportedFrameworks

enter image description here

Note, I didn't do anything in the NuGet window it just automatically says that. I also get this same error when I try to install any package through the console:

Install-Package EntityFramework
Installing 'EntityFramework 6.1.3'.
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkID=320539. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 6.1.3'.
Adding 'EntityFramework 6.1.3' to FirstDemo.Core.
Uninstalling 'EntityFramework 6.1.3'.
Successfully uninstalled 'EntityFramework 6.1.3'.
Install failed. Rolling back...
Install-Package : Specified argument was out of the range of valid values.
Parameter name: supportedFrameworks
At line:1 char:1
+ Install-Package EntityFramework
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

How can I fix NuGets errors?

Relevant information:

  • Using Visual Studio Professional 2012 V11.0.50727.1 .NET 4.5.51641
  • On Windows 8.1
  • I have installed the Nuget Package Manager extension (see below image). V2.8
  • When I attempt to download and run the NuGet Install from the VS Website I get the error C:/Users/.../AppData/Local/Temp/NuGet.Tools-1.vsix Application not found.

enter image description here

enter image description here

sazr
  • 24,984
  • 66
  • 194
  • 362
  • 1
    Maybe try [reinstalling NuGet](http://stackoverflow.com/questions/14714619/cant-update-or-uninstall-nuget-package-manager-in-vs2012)? – Jasen Aug 21 '15 at 01:48
  • @Jasen great that fixed it for the most part – sazr Aug 21 '15 at 05:09

1 Answers1

0

As per Jasens comment; this website with instructions fixed the problem:

http://www.paraesthesia.com/archive/2013/07/30/upgrading-nuget-the-process-cannot-access-the-file-because-it.aspx/

sazr
  • 24,984
  • 66
  • 194
  • 362