Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 55: Line 55:
* [https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md Linux System Prerequisites for .NET Core]
* [https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md Linux System Prerequisites for .NET Core]
* [https://medium.com/@ylerjen/installing-netcore-on-a-raspberry-pi-3-e6ea1bca12e3 Installing .Net Core on a Raspberry Pi 3]
* [https://medium.com/@ylerjen/installing-netcore-on-a-raspberry-pi-3-e6ea1bca12e3 Installing .Net Core on a Raspberry Pi 3]
* [[Raspberry Pi Authoritative DNS Server]]
* [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md Setting WiFi up via the command line]
* [https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md Setting WiFi up via the command line]
* [https://www.raspberrypi.org/forums/viewtopic.php?t=203716 PI Zero W wpa_supplicant]
* [https://www.raspberrypi.org/forums/viewtopic.php?t=203716 PI Zero W wpa_supplicant]

Revision as of 10:58, 3 August 2019

Dotnet Core

sudo su
mkdir -p /opt/dotnet
chown pi /opt/dotnet
sudo apt-get udpate
sudo apt-get install curl libunwind8 gettext apt-transport-https
sudo apt-get install libicu63 libssl1.1
cd /opt/dotnet
# download from http://cdn.chorke.org/soft/rpix/dotnet/
sudo tar zxf dotnet-sdk-2.2.102-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf dotnet-runtime-2.1.9-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf aspnetcore-runtime-2.2.1-linux-arm.tar.gz -C /opt/dotnet/
echo 'export DOTNET_ROOT=opt/dotnet' >> ~/.bash_profile
echo 'export PATH=$PATH:$DOTNET_ROOT' >> ~/.bash_profile
printenv
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
dotnet --info
dotnet --help

Core Project

cd ~/Documents
mkdir HelloWorld
cd HelloWorld

dotnet new console
dotnet publish -r linux-arm
bin/Debug/netcoreapp2.2/linux-arm/publish/HelloWorld
# Hello World!

dotnet publish -r win-arm
bin/Debug/netcoreapp2.2/win-arm/publish/HelloWorld
# Hello World!

References