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?