.NET Application Development on Device
Installation
For example https://dotnet.microsoft.com/en-us/download/dotnet/7.0
BASH
cd /tmp/
date --set="6 DEC 2022 07:00:00"
wget https://download.visualstudio.microsoft.com/download/pr/47337472-c910-4815-9d9b-80e1a30fcf16/14847f6a51a6a7e53a859d4a17edc311/dotnet-sdk-7.0.100-linux-arm64.tar.gz
HOME="/home/root"
mkdir -p $HOME/dotnet && tar zxfv dotnet-sdk-7.0.100-linux-arm64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
Test
BASH
mkdir /dottest
cd /dottest
dotnet new console -o MyApp -f net7.0
cd MyApp
dotnet run
Build Binary
BASH
dotnet build
./bin/Debug/net7.0/MyAp
Run Binary
BASH
#run dotnet app
HOME="/home/root"
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
/dottest/MyApp/bin/Debug/net7.0/MyApp
Additional Information:
https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create