如何使用Visual Studio Express 2012升级nuget

eea*_*dev 38 nuget visual-studio-2012

通过Nuget控制台安装此软件包Microsoft.Net.Http时出现此错误:

Install-Package : The 'Microsoft.Net.Http 2.2.28' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40627.9000'.
Run Code Online (Sandbox Code Playgroud)
  • 请问如何将Nuget升级到2.8.1版本?

我不能轻易在谷歌上找到任何东西.

Mat*_*ard 87

要将Visual Studio中的NuGet更新为最新版本,可以使用Extensions Manager.

  1. 从"工具"菜单中选择"扩展和更新".
  2. 然后在打开的对话框中选择"更新"选项卡.
  3. 然后选择Visual Studio库.
  4. 选择Visual Studio的NuGet包管理器,然后单击"更新"按钮.

如果要安装NuGet 2.8.1,可以从NuGet的CodePlex网站下载Visual Studio安装程序(VSIX)

  • 是的,NuGet for VS 2012仅支持NuGet 2.8.您可以从[图库页面](https://www.visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c)查看最新版本.VS 2013支持NuGet 2.12,如[图库页面]所示(https://www.visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca) (7认同)
  • NuGet for VS2012最大限度地用于NuGet 2.8.6吗?我在海报上遇到了类似的错误,但至少要求版本为2.12.我遵循上述相同的步骤(除了尝试卸载和重新安装NuGet包管理器),但它没有显示可用的更新,安装在2.8.6. (6认同)