I see pretty good lang support for openwrt like golang, python, erlang etc.
I don't see dotnetcore ported yet.
Has anyone tried to build it directly? Any challenges? The runtime probably will require lots of memory.
This is my ideal platform for building tools/apps.
If it's too problematic to port it I will use python.
Still curious if anyone has it running.
thanks
There is a solution for this.
Follow instructions from this excellent article.
https://davidjmclaughlin.com/projects/how-to/2020/03/15/running-.net-core-on-openwrt-and-raspberry-pi-4.html.
Don't worry about the errors at the end, this thing now runs fine on openwrt 19.
You do need to install the following packages on the openwrt: libstdcpp6, libintl-full8, icu.
To run dotnet apps on openwrt, there are 3 different scenarios:
-
Cross build the app on your host/dev machine and copy the executable to openwrt to run it.
-
You can install the dotnet runtime on the openwrt router. In this case you only need to copy the assembly dll to openwrt to run it.
Note both 1 and 2 requires the router uses arm64 and x64. -
You can also install the runtime+sdk if the router uses x64. In this case you can do the development on the openwrt router.
I also added additional comments on the test app:
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.