【发布时间】:2023-02-14 05:47:06
【问题描述】:
我有一个角度 UI 和 API 构建,可以在本地(Visual studio 2019)中很好地构建。但在 Azure 管道中它失败并出现以下错误。在管道任务中,我找不到任何升级/降级 SDK 版本或 MSBuild 版本的选项。绝对应该有一个我找不到的地方的选项。有人可以点灯吗?
Error : Version 5.0.407 of the .NET Core SDK requires at least version 16.8.0 of MSBuild. The current available version of MSBuild is 15.9.21.664. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
【问题讨论】:
-
流水线构建机器是否由自定义图像制成?
-
我是 Azure 的新手,可能不确定你的问题。但是如果你说的是代理池,我使用的是私有代理池而不是托管代理池。
-
是的,这个错误是指代理池中的机器。您需要更新该计算机(或图像,如果它是规模集)。
-
@joelforsyth 谢谢!我已经尝试从不同的代理池(即以前的图像)和它的工作正常。
标签: azure azure-devops azure-pipelines pipeline azure-pipelines-build-task