Install NET Core 2.1 SDK on Rasapbian

This article is based on the work of this Scott Hanselman blog entry But is easy to be lost with options with docker and the bare install script is very version dependant.
raspberry with net core

To build the url to download the last version of the SDK I have followed these steps:

Find the last version, or whatever version you want at https://www.microsoft.com/net/download/archives


I'm using the last version: 2.1





We need the Linux SDK for ARM32. If we follow the ARM32 link, the page start downloading the tar.gz file. Ok, I copied the 'Try again' link

so I can paste on my Raspberry console


The same with the asp.net core


With this info, we can do:
$ wget https://download.microsoft.com/download/9/D/2/9D2354BE-778B-42D6-BA4F-3CEF489A4FDE/dotnet-sdk-2.1.400-linux-arm.tar.gz
$ wget https://download.microsoft.com/download/1/f/7/1f7755c5-934d-4638-b89f-1f4ffa5afe89/aspnetcore-runtime-2.1.2-linux-arm.tar.gz
$ sudo mkdir /opt/dotnet
$ sudo tar -xvf dotnet-sdk-2.1.400-linux-arm.tar.gz -C /opt/dotnet/
$ sudo tar -xvf aspnetcore-runtime-2.1.2-linux-arm.tar.gz -C /opt/dotnet/
$ sudo ln -s /opt/dotnet/dotnet /usr/local/bin
$ dotnet --info
where the first 2 lines are the url's copied from the download pages

Comentarios

Entradas populares de este blog

Actualizar automáticamente la versión del ejecutable con el nº de build de Jenkins

Pasar parámetros dinámicos a Attributes