[英]MSBuild or VSbuild task is not working after I updated it to Visual Studio Build tools 2022 from 2019
I updated my VS build tools 2019 to 2022. Upgraded it for dotnet6.我将我的 VS 构建工具从 2019 年更新到 2022 年。为 dotnet6 升级了它。 After I updated it to latest one, the pipelines build for dot net framework and dot net 5 failing and throwing error like below在我将其更新到最新版本后,为 dot net framework 和 dot net 5 构建的管道失败并抛出如下错误
##[error]No agent found in pool DotNet satisfies both of the following demands: Agent.Name, visualstudio. ##[错误]在池 DotNet 中找不到代理满足以下两个要求:代理.名称,visualstudio。 All demands: Agent.Name -equals, msbuild, visualstudio, Agent.Version -gtVersion 2.115.0所有要求:Agent.Name -equals,msbuild,visualstudio,Agent.Version -gtVersion 2.115.0
But the same pipelines working fine on VS Build tools 2019. We are using the Nuget and VS build in the tasks which are failing.但是相同的管道在 VS Build tools 2019 上运行良好。我们正在使用 Nuget 和 VS 构建失败的任务。 For some pipelines which we are using .netcoreCLI, this build tools 22 are working for .netcoreCLI task.对于我们正在使用 .netcoreCLI 的一些管道,此构建工具 22 适用于 .netcoreCLI 任务。 There are many pipelines where I can't migrate to .netcoreCLI.有许多管道我无法迁移到 .netcoreCLI。 Please someone help me to sort out this issue.请有人帮我解决这个问题。 [ [
MSBuild or VSbuild task is not working after I updated it to Visual Studio Build tools 2022 from 2019 MSBuild 或 VSbuild 任务在我从 2019 年更新到 Visual Studio Build tools 2022 后不起作用
According to the error message, this shows that your pipeline has added demands, but there are no agents that meet the requirements in your agent pool:根据报错信息,这说明你的流水线增加了需求,但是你的代理池中没有满足需求的代理:
##[error]No agent found in pool DotNet satisfies both of the following demands: Agent.Name, visualstudio. ##[错误]在池 DotNet 中找不到代理满足以下两个要求:代理.名称,visualstudio。
So, please check if your pipeline have set any demands:所以,请检查您的管道是否有任何要求:
If you set it,please try to remove or you need to check the value for the capabilities of your agent:如果您设置了它,请尝试删除,否则您需要检查代理功能的值:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.