The Raspberry Pi is one of my favorite toys when it comes to hosting local applications or services like relational databases for testing purposes. At the moment I am trying to test an ASP.NET core application with this setup. However, getting .NET Core to run on the Raspberry Pi is not as easy as I thought, so I’d like to briefly outline the necessary steps.
On GitHub you will find the download links we need. In my example I am using version 2.1.1. By following the link to the required version, you’ll see a table with different download links.
Important for the Raspberry Pi are now the downloads for ARM architecture, I need the SDK and the ASP.NET Core Runtime. So I copy the two links and download the archives with wget:
|
|
I then create a new directory for .NET Core and extract both of the archives to this new directory:
|
|
All that’s left to do now is to create a symbolic link to the folder and you’re good to go:
|
|
And that’s it! Now you have access to the familiar .NET commands like dotnet build or run, and your ASP.NET core application is ready to run.