azure-devopsbuild-agent

Location of EDITBIN in Microsoft-hosted agents


How do I find the location of the EDITBIN on a Microsoft-hosted agent? I'm trying to use it to set SWAPRUN for the output DLLs of a C# project.

For a local build, I use $(DevEnvDir)\..\..\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x86\editbin. However, on the Microsoft-hosted agent, DevEnvDir is not defined, nor do I know if the rest of the path would work?

A related bonus question is where can I find in general the file structure for a Microsoft-hosted agent?


Solution

  • The editbin.exe exist in Hosted VS2017 agent in:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\SDK\ScopeCppSDK\VC\bin\editbin.exe
    

    And to get the folder structure you can use a powershell script, such as:

    cd "C:\Program Files (x86)\Microsoft Visual Studio\2017"
    Get-childItem | tree
    

    And if you want to check the structure of a root directory like C:\, it will cost a lot of time.