.NET Core is an excellent cross-platform C# programming language framework.
We can install the compilation and execution environment on BPI-R4 Debian.
First of all, BPI-R4’s Debian supports .NET Core 8.0 and 9.0, and you can install either or both.
Install step (Here we example .NET Core 8.0):
- Download from Microsoft .NET
We download Arm64 version Binary.
- Mkdir and decompress .NET to /usr/lib/dotnet
cd /tmp |
- Modify /etc/profile and add /usr/lib/dotnet to PATH
After installed, we can create project to test.
Console project test:
mkdir /tmp/test_console |
API Web project test:
cd /tmp |
dotnet run
|
PS: .NET webapi default binding localhost, we can modify appsettings.json to change this.