【问题标题】:what's the path of msbuild in vstsvsts中msbuild的路径是什么
【发布时间】:2019-03-19 11:49:33
【问题描述】:

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

【问题讨论】:

标签: build msbuild azure-devops azure-pipelines-build-task


【解决方案1】:

您可以从托管代理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\ 

【讨论】:

  • 谢谢,我试试看。
  • 我不认为有一个“预定义变量”可以用于此,是吗?
猜你喜欢
  • 2013-10-08
  • 1970-01-01
  • 2010-09-24
  • 1970-01-01
  • 2016-10-15
  • 2020-10-30
  • 2014-08-02
  • 2020-11-16
  • 1970-01-01
相关资源
最近更新 更多