0
votes

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.

2
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

2 Answers

0
votes

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

I posted my question to Microsoft Developer Community and managed to figure out what was the problem. You can follow this link. I hope I do not break any rules by redirecting to another web-site.