首页 > 解决方案 > vsts中msbuild的路径是什么

问题描述

asp.net web表单项目需要迁移到vsts。该项目使用 python 脚本来构建和发布。在代码中它调用 msbuild.exe。但是,我很困惑如何在 vsts 中引用 msbuild 位置来替换 python 文件中的先前位置。

标签: buildmsbuildazure-devopsazure-pipelines-build-task

解决方案


您可以从 Hosted Agent 获取位置Capabilities

  1. 导航 https://dev.azure.com/{organization}/_settings/agentpools
  2. 选择特定的池和代理(Hosted VS2017在您的场景中)
  3. 切换到Capabilities标签

例如,下面是Hosted VS2017 代理中的 MSBuild 位置:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\ 

在此处输入图像描述


推荐阅读