msbuild在vsts中的路径是什么

what's the path of msbuild in vsts

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

您可以从 Hosted Agent Capabilities 获取位置。

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

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

C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\MSBuild.0\Bin\