Nuget版本不正确? [英] Nuget version not correct?

查看:105
本文介绍了Nuget版本不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个无法编译的项目.当我尝试这样做时,出现以下错误:

I have a project that i cannot compile. When i try to do so I get the following error:

The 'Microsoft.Bcl.Build 1.0.14' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.7.41115.310'.  

通常这很简单.搜索后,我找到了本指南: http://www.daimto.com/package-requires-nuget-client-version-x/

Normally this would be simple. After searching I found this guide: http://www.daimto.com/package-requires-nuget-client-version-x/

这说明了如何升级我的Nuget客户端版本.但是,当我按照这些步骤操作时,我发现我已经在使用最新版本的Nuget:2.8.5

That explains how I can upgrade my Nuget client version. However, when i follow those steps, I find that I am already using the latest version of Nuget: 2.8.5

但是由于某种原因,Visual Studio 2013 Ultimate使用的是旧版本,我不明白为什么.

For some reason however, Visual Studio 2013 Ultimate is using an older version, and I don't understand why.

在卸载Visual Studio for Web Express 2012之后,我的Visual Studio Ultimate 2013安装是全新安装.以前的版本给我带来了很多问题,因此我删除了它,然后移至2013.我不知道是否有一些问题. cofig文件已通过,但我不确定.

My install of Visual Studio Ultimate 2013 is a fresh install, after unninstalling Visual Studio for Web Express 2012. The previous version was giving me a considerable amount of problems and so I deleted it and moved on to 2013. I wonder if some cofig files were passed through, but I cant be sure.

如何解决此问题?

推荐答案

因此,在四处搜寻之后,我没有找到答案,所以我决定查看项目文件夹.碰巧我在主文件夹中有NuGet.exe的主版本2.8.5,但项目远不及该主文件夹.

So, after searching around I found no answers, so I decided to look into the project folders. It happens that I have the main version of NuGet.exe, 2.8.5 in main folder, but the project was nowhere near that main folder.

这样,当我下载项目时,它仅使用了从TFS中提取的NuGet版本(或者我认为是),这就是问题所在-版本是Nuget.exe 2.7.4.

This way, when I downloaded the project it simply used the NuGet version pulled from TFS (or so I assume), and that was the problem - that verison was Nuget.exe 2.7.4.

替换了"Nuget.exe"文件(位于项目的/.nuget文件夹中)后,该项目终于被编译,一切都重新开始工作.

After replacing the "Nuget.exe" files (found in /.nuget folder of the project) the project finally compiled and everythign started working again.

这篇关于Nuget版本不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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