The following intructions can be used to install .NET Core on Linux ARM64.
Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.
The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.
curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
- For ARM32, switch "arm64" to "arm" in the link above.
- For .NET Core 3.1, you can get the download link @ https://dotnet.microsoft.com/download/dotnet-core/3.1 (look for ARM binaries).
.NET Core has the following dependencies, on Ubuntu (other distros will vary):
- libc6
- libgcc1
- libgssapi-krb5-2
- libicu60
- liblttng-ust0
- libssl1.0.0
- libstdc++6
- zlib1g
The following steps can be used to try out .NET Core.
dotnet new console -o app
cd app
dotnet run
Raspbian is a 32-bit OS (they are keeping it 32-bit because they don't wan't to have to respond to questions like "why doesn't the latest Raspbian work on my old Raspberry Pi 1.0").
Even if you install 64-bit Raspbian kernel, the userspace is still 32-bit, so no, 64-bit dotnet won't work there and this is not a problem of dotnet.
If you wish to test on 64-bits, then it is probably best to install Ubuntu.