c# - Running a .NET 9 console app for ARM64 fails - Stack Overflow

admin2025-05-01  0

I have a standard C# .NET 9 console project in Visual Studio on my Windows 11 PC. The project is an untouched default "Hello World" console project.

If I publish this for osx-x64 as self-contained, copy the published folder to my M2 Mac and execute the file, I get the result "Hello World".

If I publish this for osx-arm64 as self-contained, copy the published folder to my M2 Mac and execute the file, I get the result "zsh: killed".

I'm no Mac guy and don't know where to start troubleshooting this. Why does such a simple test fail? Are there any logs where I can find the reason why it fails?

转载请注明原文地址:http://anycun.com/QandA/1746108935a91793.html