azure 持续部署失败,部署命令出现 nuget 客户端版本错误

azure continuous deployment fails with nuget client version error on deployment command

Activity 日志

Command: "D:\home\site\deployments\tools\deploy.cmd" Handling .NET Web Application deployment. D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'Microsoft.Bcl 1.1.10' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'Microsoft.Bcl.Async 1.0.168' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'Microsoft.Bcl.Build 1.0.21' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'Microsoft.Net.Http 2.2.29' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'Newtonsoft.Json 10.0.3' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.Net.Http 4.3.3' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.Security.Cryptography.Algorithms 4.3.1' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.Security.Cryptography.Encoding 4.3.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.Security.Cryptography.Primitives 4.3.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.Security.Cryptography.X509Certificates 4.3.2' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error : The 'System.ValueTuple 4.4.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.6.40619.9041'. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] D:\home\site\repository.nuget\NuGet.targets(89,9): error MSB3073: The command ""...nuget\NuGet.exe" install "D:\home\site\repository\Plantao.Web\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "..\ " " exited with code 1. [D:\home\site\repository\Plantao.Web\Plantao.Web.csproj] Failed exitCode=1, command="D:\Program Files (x86)\MSBuild.0\Bin\MSBuild.exe" "D:\home\site\repository\Plantao.Web\Plantao.Web.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Tempd578a48eacd291";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false An error has occurred during web site deployment. \r\nD:\Program Files (x86)\SiteExtensions\Kudu.10217.3259\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

据我所知,我们需要更新 kudu NuGet 客户端,但我在互联网上一无所获

A​​zure 已 nuget 4.3.0.4406 安装,默认情况下,这是用于在构建项目时恢复包的工具

我快速浏览了您的 kudu 站点:

您在 .nuget/ 文件夹下签入了您自己的 nuget 版本,是故意的吗?