'UmbracoCms.Core 7.6.5' 包需要 NuGet 客户端版本 '3.4.4' 或更高版本,但当前的 NuGet 版本是 '2.8.1.0'

The 'UmbracoCms.Core 7.6.5' package requires NuGet client version '3.4.4' or above, but the current NuGet version is '2.8.1.0'

简介

我正在尝试使用 "UaaS.cmd" 从云端创建一个项目。

我 运行 它,填充 url 和命名空间,它开始工作。然后在过程中间我得到错误:

Installing UmbracoCms.Core
 The 'UmbracoCms.Core 7.6.5' package requires NuGet client version '3.4.4' or above, but the current NuGet version is '2.8.1.0'.
    at NuGet.PackageWalker.CheckPackageMinClientVersion(IPackage package)
    at NuGet.PackageWalker.Walk(IPackage package)
    at NuGet.InstallWalker.ResolveOperations(IPackage package)
    at NuGet.ProjectManager.Execute(IPackage package, IPackageOperationResolver resolver)
    at Waasp.PackageInstaller.InstallPackage(String packageId, SemanticVersion version, String projectPath, String targetFolder)

但是我安装了 VS 2015 和 VS 2017。我的 Vs 2015 说我安装了 nuget 3.5 版,而 vs 2017 说我安装了 nuget v4.2。

我尝试了什么

我在我的 cmd 中 运行 nuget,但它没有被识别,所以我下载了最新版本并将其添加到我的环境中,所以当我 运行 cmd 时,转到我的 uaas.cmd 文件所在的文件夹并键入

nuget update -self

它告诉我我有 nuget 4.2 并且它是最新的。但是当我尝试 uaas.cmd 时,同样的错误发生了

我不明白!它在哪里找到 2.8.1.0?!为什么不用4.2?

P.S: 我也在umbraco论坛上写过,但我猜它比umbraco更与nuget客户端相关

我也在我们的 Umbraco 上写了我的问题,这似乎是他们的错误:)

万一有人遇到和我一样的情况:

这是塞巴斯蒂安的回答: link to the topic

The problem is that UaaS.cmd does run nuget 2.8.1 in it (it's ILmerged into the waasp.exe it download).

I'm working on getting it updated but the v4 version of nuget.exe is missing some critical methods that we need to create the list of dependencies. So I'm looking into doing some trickery. Anyway, for now, just go into the .Core project and install Newtonsoft.Json and System.Threading.Tasks.Dataflow and then you should be fine!