#RaspberyPi – How to install .Net Core 3.1 in a Raspberry Pi 4

Buy Me A Coffee

Hi !

I’ve write some posts about how to install .Net Core and Visual Studio Code on a Raspberry Pi 4. However, I’m testing something new in the device and I realize that my posts are no longer valid for the .Net Core installation. So, here is an updated version.

Download .Net Core 3.1 Image

1st we need to download the 3.1 version of .Net Core (see references). For the Raspberry Pi, we will use the ARM32 binaries.

download arm32 version of net core 3.1

Installation on Raspbian

The documentation has a official script to install .Net Core in a ARM32 Linux OS. However it won’t work in Raspbian.

Here is the updated script to use in Raspbian

sudo mkdir -p $HOME/dotnet 
sudo tar zxf dotnet-sdk-3.1.100-linux-arm.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

Important: you need to run this on the same directory where the .Net Core image [dotnet-sdk-3.1.100-linux-arm.tar.gz] was downloaded

After running this commands, we will have .Net unzipped and installed

dotnet unzipped and installed

Testing Installation

Once we finish the installation, we can test with the command [dotnet]

test dotnet command after install

And we can create and build a test project in 2 steps.

dotnet test app

Happy coding !

Greetings @ Burlington

El Bruno

References

My posts on El Bruno

My posts on Raspberry Pi

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware

2 thoughts on “#RaspberyPi – How to install .Net Core 3.1 in a Raspberry Pi 4”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.