'Can I run a C# application on a Raspberry Pi?
I'm working on a project that means that I will need a Raspberry Pi; however, I have very limited programming experience in Python or Lua.
Is it possible to run a program compiled in VS2013 using C# on a Raspberry Pi?
Solution 1:[1]
You can use VS2019 to compile your C# application to .NET Core 3.1.
Once your application is compiled open the directory with the .csproj file in command promt. type in dotnet publish -c release -r linux-arm in command promt. put the compiled files onto the pi then open a terminal window on the py and type chmod u+x <YourProjectName> then ./<YourProjectName> Enjoy!
Solution 2:[2]
You can run Mono on your Pi, then develop in C# if you want.
http://www.raspberry-sharp.org/eric-bezine/2012/10/mono-framework/installing-mono-raspberry-pi/
Solution 3:[3]
If you install the mono framework and follow their guidelines there's no reason your application won't run (obviously within the limits of the framework and hardware). There are quite a few resources on it. I've seen it done in a demo without too many problems.
Writing on the pi would be harder!
Solution 4:[4]
You can install Windows 10 IoT: https://docs.microsoft.com/en-us/windows/iot-core/tutorials/rpi
Or supported Linux and last version of .NET or .NET Core https://www.raspberrypi.com/software/operating-systems/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Quinch |
| Solution 2 | Loofer |
| Solution 3 | Liath |
| Solution 4 | mainmind83 |
