.NET Core Pi

Sign in to queue

Description

Found today's post via the one and only Paul Thurrott's post, .NET Core Comes Quietly to Raspberry Pi and had to share it with you.

I mean talk about the cross-platform promise of .NET Core coming true!

NOTE: This is still work in progress...

.NET Core on Raspberry Pi

Arm32 support for .NET Core is still being brought up but there are now daily runtime builds that are ready to use. There is no SDK that runs on ARM32 yet but you can publish an application that will on a Raspberry Pi.

These steps have been tested on both a Pi 2 and Pi 3 on Linux and Windows.

Creating an app:

  • Install .NET Core 2.0 SDK into a supported developer configuration.

  • From the terminal/commandline create a folder named helloworld and go into it.

  • Run dotnet new console -n helloworld.
  • ...

Getting the app to run on the Pi.

Linux (Ubuntu)
  • Install Ubuntu 14.04 or 16.04 on your Pi.

  • Install the prereq packages for .NET Core.

  • Copy your app to the Raspberry Pi and execute run ./helloworld to see Hello World! from .NET Core running on your Pi!

Note: While it is possible to build the product on the Pi, it isn't easy today and it's slow. We are working on making it very easy to do.

Win10 IoT Core
  • Install Windows 10 IoT Core on your Pi.

  • Copy your app to the Raspberry Pi and execute run helloworld.exe to see Hello World! from .NET Core running on your Pi



Tags:

.NET, Coding4Fun, IoT

The Discussion

  • User profile image
    Franco Robles

    Does this mean that we should start looking into .NET Core instead of Mono?

  • User profile image
    gduncan411

    @Franco Robles: As it always seems, "it depends." This project is still very much work in progress, but .NET Core is getting a great deal of active investment by Microsoft and the community. Mono is much more mature, .NET Core is meant to be the "cloud-ready and cross-platform" future

  • User profile image
    Andre

    "Copy your app to the Raspberry Pi and execute run helloworld.exe to see Hello World! from .NET Core running on your Pi"

    https://developer.microsoft.com/en-us/windows/iot/docs/buildingappsforiotcore

    I don't think Windows IoT Core fully supports .Net Core, or ?

  • User profile image
    svandex

    @Franco Robles: It means .Net is the future, pay more time on it, it is no waste. 

Add Your 2 Cents