'Cannot execute Windows Form .exe on Raspberry Pi with Ubuntu

I've installed the .NET SDK on my Raspberry Pi with Ubuntu to run my Windows Form applications. If i try to run it the following error shows up:

bash: ./programname.exe: cannot execute binary file: Exec format error

As far as I know thats because the application wasn't created with a ARM64 system.

Is there any way getting around that error?

Thank you very much!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source