#csharp #dotnet #raspberrypi
Visual Studio 2017 Community에서 .Net Core 프로젝트를 생성한후 빌드한다.
namespace dotnet_pi_mk0
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
dotnet publish -r linux-arm
./bin/Debug/netcoreapp2.0/linux-arm/publish
폴더 전체를 라즈베리파이로 복사한다.sudo apt-get update
sudo apt-get install curl libunwind8 gettext apt-transport-https
publish
폴더에서 sudo ./helloworld
명령으로 실행한다.