Avalonia and Raspberry #17039
-
Dear Forum. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Avalonia supports desktop Linux as well as Framebuffer/DRM mode. Any of those will work on a Raspberry Pi. You cannot install Visual Studio on Linux though. The only real modern C# IDE that exists for Linux is Rider, which does work on a Raspberry Pi. But don't expect the performance to be great. If you just want to compile though on the Pi, you can do that from a terminal with only a couple commands. If you want to cross compile from Windows to Linux, the answer is: It depends. For a normal .NET app, it will work fine. An AOT app however requires lots of fiddling with obscure packages and build settings which is generally not worth it if you can just build on the actual hardware. You can use WSL for some of it, but you will still run into problems with the Pi using a different architecture from a regular PC. Visual Studio (and Rider) also has the ability to publish over SSH, so you can easily remote deploy from a Windows PC to the Pi.
It's possible for all Avalonia apps. I would not recommend it though. It's not as well documented and some things are significantly harder to do. But there is this library to make it easier: |
Beta Was this translation helpful? Give feedback.
You still need a native library. Avalonia relies heavily on things like Skia for basically everything. The .NET build system (if it's configured to do so) generally works out what libraries to include based on what platform you target.
Yes but also no. Again, it depends on how you compile the app. If you do a self contained app then the app will contain th…