Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 321
Cjen1 Avatar asked Mar 18 '23 09:03

Cjen1


1 Answers

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!

like image 123
Quinch Avatar answered Mar 29 '23 07:03

Quinch