I am trying to run a simple "Hello, World" C# app on my Raspberry Pi Zero. It works fine on my Raspberry Pi B+, but I get an "illegal instruction" error on the Zero. In both cases, I am compiling the program using Visual Studio on a Windows PC, copying the exe to the Pi, and then running it on the Pi with "sudo mono hello.exe". I should also note that I built the SD image for the Zero on the B+ (to avoid having to find weird adapters for video, USB, ...)
I get that the Zero has an ARMv6 architecture and the B+ an ARMv7 architecture, and am assuming that is the root of my problem.
Some questions come to mind:
Is it true that mono and the mono libraries target only ARMv7 and that an ARMv6 version is not available?
Would compiling the code for the Zero on the Zero make any difference?
Is it feasible to even consider trying to compile/port mono to work on an ARMv6 myself?
Or is there any other way to get a C#/.Net application to run on a Zero?
Thanks in advance for your thoughts.