“System.Net.Http 4.0.0"包需要 NuGet 客户端版本“3.0"或更高版本 [英] 'System.Net.Http 4.0.0' package requires NuGet client version '3.0' or above

查看:89
本文介绍了“System.Net.Http 4.0.0"包需要 NuGet 客户端版本“3.0"或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用团队城市作为我们的 CI,我开始收到此错误消息.我们最近显然更新了 System.Net.Http,现在需要新版本的 NuGet.如何让团队城市找到新的 NuGet 版本.我试过安装 VS2015 并通过那里更新 NuGet 包管理器.我试过直接指向命令行 nuget.exe(不知道它是否已更新到 v3?)

Using team city as our CI and I've started getting this error message. We've obviously updated System.Net.Http recently which now needs a new version of NuGet. How do I get team city to find the new NuGet version. I've tried installing VS2015 and updating NuGet package manager through there. I've tried pointing directly to the command line nuget.exe (Don't know if that's been updated to v3?)

[restore] The 'System.Net.Http 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.8.60717.93'.
[restore] Process exited with code 1

我是否只需要等到 MS 将新的 nuget 包推送到 nuget?

Do I just have to just wait till MS pushing the new nuget package to nuget?

谢谢

推荐答案

从此网址下载 NuGet 3.1:

Download NuGet 3.1 from this url:

http://dist.nuget.org/win-x86-commandline/v3.1.0-beta/nuget.exe

然后将其放在您的构建服务器上,将目录放在您的路径中,并使用 NuGet.exe 在 TeamCity 中将您的 NuGet 构建步骤作为命令行"命令运行.

Then put that on your build server, put the directory in your path, and run your NuGet build steps as "Command Line" commands in TeamCity, using NuGet.exe.

这篇关于“System.Net.Http 4.0.0"包需要 NuGet 客户端版本“3.0"或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆