简体   繁体   English

MSBuild 或 VSbuild 任务在我从 2019 年更新到 Visual Studio Build tools 2022 后不起作用

[英]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.请有人帮我解决这个问题。 [ [请查看以下图片][1]

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.

相关问题 我无法从 Visual Studio 2019 登录 Azure 服务 - I cannot sign-in Azure service from Visual Studio 2019 Visual Studio 2019 重新下载 Azure Function CLI 工具 - Visual Studio 2019 Re-Downloads Azure Function CLI Tools 在新版本的 Visual Studio 中构建后,可执行文件在 Azure 上无法正常工作 - Executable not working correctly on Azure after build in new version of Visual Studio Visual Studio 2017 MSBuild无法生成Azure函数 - Visual Studio 2017 MSBuild failed to build Azure Functions Visual Studio 2019 中缺少 Application Insights - Application Insights missing from Visual Studio 2019 无法构建由Visual Studio 2019创建的Dockerfile-Docker和Azure - Unable to build a Dockerfile created by Visual Studio 2019 - Docker and Azure Azure visual studio 2022 connected services 的 key vault 集成 - Azure key vault integration from visual studio 2022 connected services Azure 构建管道:是否可以使用存储在 Key Vault 中的代码签名证书在 VSBuild 任务中签署 MSIX? - Azure build pipeline: Is it possible to sign an MSIX within the VSBuild task using a code signing certificate stored in the Key Vault? 使用 Visual Studio 2019 发布后找不到 Azure 函数 - Azure function not found after publishing using Visual Studio 2019 Visual Studio 2019 | "Microsoft.VisualStudio.Azure.Containers.Tools.Targets" NuGet 包 | “在此来源中不可用” - Visual Studio 2019 | "Microsoft.VisualStudio.Azure.Containers.Tools.Targets" NuGet Package | "Not available in this source"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM