libhostfxr.dylib was found, but loading it from _tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib failed

Anonymous
2023-08-31T19:21:46.0366667+00:00

During command execution in Azure pipeline on Agent machine getting below error.

Agent machine : MacOS 13.1,M1 processor

Failed to load /Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib,

error: dlopen(/Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib, 0x0001): tried: 

'/Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), 

'/System/Volumes/Preboot/Cryptexes/OS/Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib' (no such file), '/Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))The library libhostfxr.dylib was found, but loading it from /Volumes/Ext/azure_agent/_work/_tool/dotnet/host/fxr/7.0.10/libhostfxr.dylib failed

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,247 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Scott Weeden 0 Reputation points
    2024-01-08T00:34:40.7033333+00:00

    I'm not sure why this is posted under azure virtual machines. I receive the same error on my Apple M1


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.