NuGet无法安装任何软件包并且不会安装?

时间:2015-08-21 00:56:42

标签: .net visual-studio-2012 nuget

我的NuGet正在播放,不会列出或搜索任何在线套餐。我收到错误:

  

指定的参数超出了有效值的范围。   参数名称:supportedFrameworks

enter image description here

注意,我在NuGet窗口中没有做任何事情,只是自动说出来。当我尝试通过控制台安装任何软件包时,我也会遇到同样的错误:

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

如何解决NuGets错误?

相关信息:

  • 使用Visual Studio Professional 2012 V11.0.50727.1 .NET 4.5.51641
  • 在Windows 8.1上
  • 我已经安装了Nuget Package Manager扩展(见下图)。 V2.8
  • 当我尝试从VS Website下载并运行NuGet安装时,出现错误C:/Users/.../AppData/Local/Temp/NuGet.Tools-1.vsix Application not found

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)