Example of DEBIX Running .net Application

2024.5.20by debix.io

1. Enter Microsoft official website(https://dotnet.microsoft.com/zh-cn/download/dotnet/8.0) to download the latest ARM64 version of the .net environment and .netSDK.


2. After the download is complete, copy the zip package to DEBIX.

3. Create a donet folder, extract the zip package into the directory.


4. Type the command to set environment variables.

echo "export PATH=$PATH:~/dotnet" >> ~/.bashrc

source ~/.bashrc

5. Run dotnet -version to check the .net version. 

6. Write a sample: HelloWorld.csproj and Program.cs.

vi HelloWorld.csproj


vi Program.cs