Skip to content

3. Creating New .Net Core Apps

Brian Mikinski edited this page Sep 29, 2018 · 3 revisions

Prior to .Net Core 2.1, the .Net Core SDK was not available on ARM devices. If you wanted to test a .Net Core app on your Pi, you had to create it first on a Windows, OSX or supported linux distro and copy it over to the Pi after targeting the correct framework. As of .Net Core version 2.1, Microsoft has done a great job of enhancing your ability to create new .Net Core applications on the Raspberry Pi and now has a supported SDK for ARM devices.

Create a new Project

pi@raspberrypi:~ $ dotnet new (project type, mvc, angular, react, etct)

Build your project

pi@raspberrypi:~ $ dotnet build

Run project

pi@raspberrypi:~ $ dotnet run

Publish

pi@raspberrypi:~ $ dotnet publish