问题
asp.net web form project needs to be migrated to vsts. The project uses python script to build and publish. In the code it calls the msbuild.exe. However, I am confused how to refer msbuild location in vsts repalcing previous location in python file..
回答1:
You can get the location from Hosted Agent Capabilities
.
- Navigate to
https://dev.azure.com/{organization}/_settings/agentpools
- Select the specific Pool and Agent(
Hosted VS2017
in your scenario) - Switch to
Capabilities
tab
For example, below is the MSBuild location in the Hosted VS2017 agent:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\
来源:https://stackoverflow.com/questions/52810150/whats-the-path-of-msbuild-in-vsts