sunny
sunny

Reputation: 95

what's the path of msbuild in vsts

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..

Upvotes: 3

Views: 3450

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30362

You can get the location from Hosted Agent Capabilities.

  1. Navigate to https://dev.azure.com/{organization}/_settings/agentpools
  2. Select the specific Pool and Agent(Hosted VS2017 in your scenario)
  3. 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\ 

enter image description here

Upvotes: 4

Related Questions