【问题标题】:azure continuous deployment fails with nuget client version error on deployment command天蓝色持续部署失败,部署命令上出现 nuget 客户端版本错误
【发布时间】:2018-02-20 21:17:46
【问题描述】:

活动日志

命令:“D:\home\site\deployments\tools\deploy.cmd” 处理 .NET Web 应用程序部署。 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, 但当前 NuGet 版本为'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 current NuGet版本是“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版本是“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版本是“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, 但当前 NuGet 版本是 '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, 但当前 NuGet 版本为'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 current 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.Encoding 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): error : The 'System.Security.Cryptography.Primitives 4.3.0' package requires NuGet client version '2.12' or above, but the current NuGet版本是“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版本是“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, 但当前 NuGet 版本是 '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 "..\ " " 以代码 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 /详细程度: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 客户端,但我无法在互联网上找到任何相关信息

【问题讨论】:

    标签: azure visual-studio-2017 nuget continuous-deployment kudu


    【解决方案1】:

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

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

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

    【讨论】:

    • 不是不是,我尝试删除它,看看会发生什么
    • 删除解决错误的文件夹,所以我接受了答案,但现在我面临一个新问题:'(无论如何谢谢
    猜你喜欢
    • 1970-01-01
    • 2022-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多