2

I faced a problem with running a DevOps pipeline on self-hosted MacOS (Catalina) build agent and it fails on the step NuGet Package Restore. The same step is successful when run on Azure Pipeline agent.

The error is:

Unable to locate executable file: 'mono'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

riQQ
  • 9,878
  • 7
  • 49
  • 66
Dmitry
  • 421
  • 4
  • 14
  • 1
    Do you have mono installed on your build agent? Is it in the `path` variable for the user account that is running your build agent? – riQQ Aug 17 '20 at 17:43

1 Answers1

3

Microsoft has configure the mono in the hosted agent, so you can run the pipeline successfully via hosted agent. Self-hosted agent need configure it and then you can run the pipeline successfully.

Configure mono

  1. Install mono on the local machine which has installed the self-hosted agent
  2. After the installation completed successfully, run the sample to verify Mono is working correctly.
  3. Configure the environment variable of mono on the local machine.
Vito Liu
  • 7,525
  • 1
  • 8
  • 17