[英]DevOps pipeline on self-hosted MacOS agent fails on NuGet package restore but works on Azure Pipeline
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.我在自托管 MacOS (Catalina) 构建代理上运行 DevOps 管道时遇到问题,它在步骤 NuGet Package 恢复时失败。 The same step is successful when run on Azure Pipeline agent.
在 Azure 管道代理上运行相同的步骤是成功的。
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.
请验证文件路径是否存在,或者该文件是否可以在 PATH 环境变量指定的目录中找到。 Also check the file mode to verify the file is executable.
还要检查文件模式以验证文件是否可执行。
Microsoft has configure the mono in the hosted agent , so you can run the pipeline successfully via hosted agent. Microsoft 已在托管代理中配置了 mono ,因此您可以通过托管代理成功运行管道。 Self-hosted agent need configure it and then you can run the pipeline successfully.
自托管代理需要配置它,然后您才能成功运行管道。
Configure mono配置mono
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.