首页 文章

azure连续部署因部署命令上的nuget客户端版本错误而失败

提问于
浏览
0

Screeshot from activity logs

Activity Logs

命令:“D:\ home \ site \ deployments \ tools \ deploy.cmd”处理.NET Web应用程序部署 . D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'Microsoft.Bcl 1.1.10'包需要NuGet客户端版本'2.8.1'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'Microsoft.Bcl.Async 1.0 .168'包需要NuGet客户端版本'2.8.1'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'Microsoft.Bcl.Build 1.0 .21'包需要NuGet客户端版本'2.8.1'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'Microsoft.Net.Http 2.2 .29'包需要NuGet客户端版本'2.8.1'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'Newtonsoft.Json 10.0.3 '包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.Net.Http 4.3 .3'包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.Security.Cryptography . 算法4.3.1'包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.Security.Cryptography . 编码4.3.0'包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.Security.Cryptography . Primitives 4.3.0'包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.Security.Cryptography . X509Certificates 4.3.2'包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误:'System.ValueTuple 4.4.0 '包需要NuGet客户端版本'2.12'或更高版本,但当前的NuGet版本是'2.6.40619.9041' . [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] D:\ home \ site \ repository.nuget \ NuGet.targets(89,9):错误MSB3073:命令“”... nuget \ NuGet.exe“安装”D:\ home \ site \ repository \ Plantao.Web \ packages.config“-source”“-NonInteractive -RequireConsent -solutionDir”.. \“”退出代码1. [D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj] exitCode = 1失败,command =“D:\ Program Files(x86)\ MSBuild \ 14.0 \ Bin \ MSBuild.exe”“D:\ home \ site \ repository \ Plantao.Web \ Plantao.Web.csproj“/ nologo / verbosity:m / t:Build / t:pipelinePreDeployCopyAllFilesToOneFolder / p:_PackageTempDir =”D:\ local \ Temp \ 8d578a48eacd291“; AutoParameterizationWebConfigConnectionStrings = false; Configuration = Release ; UseSharedCompilation = false网站部署期间发生错误 . \ r \ nD:\ Program Files(x86)\ SiteExtensions \ Kudu \ 71.10217.3259 \ bin \ Scripts \ starter.cmd“D:\ home \ site \ deployments \ tools \ deploy.cmd”

从我能够理解的,我们需要更新kudu NuGet客户端,但我在互联网上无能为力

1 回答

  • 1

    Azure已安装 nuget 4.3.0.4406 ,默认情况下,这是用于在构建项目时还原包的Azure

    我快速浏览了你的kudu网站:
    enter image description here

    你在 .nuget/ 文件夹下检查了自己的nuget版本,那是故意的吗?

相关问题