wolfgang ziegler

„make stuff and blog about it“

Running .NET 5 (Preview) on a Raspberry Pi 4

May 3, 2020

Out of curiosity, I tried running the latest .NET bits on a Raspberry Pi 4 and it worked surprisingly smooth.

I used SDK 5.0.100-preview.3 for this experiment which is the latest version of the .NET 5 SDK preview at the point of writing this blog post.

Alternatively, there's https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm.tar.gz to always get the latest SDK version in case you try this at a later time.

With just a few shell commands, .NET 5 preview was installed ...

wget https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet-sdk-latest-linux-arm.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

... and running!

$ dotnet --version

Let's get some more details using dotnet --info.

$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-preview.5.20253.2
 Commit:    03404be8a0

Runtime Environment:
 OS Name:     raspbian
 OS Version:  10
 OS Platform: Linux
 RID:         linux-arm
 Base Path:   /usr/share/dotnet/sdk/5.0.100-preview.5.20253.2/

Host (useful for support):
  Version: 5.0.0-preview.5.20253.2
  Commit:  be456b1ab5

.NET SDKs installed:
  5.0.100-preview.5.20253.2 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-preview.5.20229.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-preview.5.20253.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:

That was easy!

Self Five!