.NET Core on IoT: Options for the RPi
January 06, 2020 14:39
David Jones MVP
iot
csharp
dnetcore
appdev
rpi
iot-core
raspbian
iothub
azure
There are three or four ways to build .NET Core on the RPi whether IoT-Core or Raspbian. Focus here is upon on the device app development.
Raspbian is Linux on the Raspberry Pi. IoT-Core is Windows 10 IoT-Core. Both are ARM Operating Systems.
- You can create the project on a development machine, say in Visual Studio or VS Code, but target the RPi. You then need to copy the built project to the RPi to run it it. More on this in a later blog. N.b. Can’t deploy directly to RPi from VS like you can with UWP apps on IoT-Core.
- This requires a Self Contained build with the RPi not having .NET Core installed , or a Framework Dependant build if .NET Core is installed on the RPi.
- You can also use a Container. More on this in a later blog.
- You can install .NET Core on the device and build the app and run it there. You need:
- A console terminal to or on the RPi for the command line builds and run activation.
- PowerShell for IoT-Core
- SSH Client: eg Putty or Windows or Windows built-in Open SSH 2 Client
- _Ps Just noticed that tar and curl are also now built-in to desktop Windows. -Raspbian has LXTerminal built-in
- An editor
- In Raspbian you have command line text editors such as nano and vi, and graphical ones such as Mousepad.
- There is no text editor by default on IoT-Core
- Need to edit remotely.
- Host the project in a share on the RPi.
- Host the project on the desktop in a share and edit in PowerShell terminal on RPi through a command line editor
- Host the project on the RPi in an FTP accessible folder and access using FileZilla. You can action editing from this app.
- Need to edit remotely.
- Debugging is an issue
- Access to GPIO from .NET Core Console apps needs consideration.
- A console terminal to or on the RPi for the command line builds and run activation.
- Alternatively for Raspbian you can use VS Code Remote to edit, build and run an app from the desktop. More on this later.
- Not available for IoT-Core: I put in a request for this.
Next: “Copy” Install .NET Core on the RPi
Topic | Subtopic | |
Next: > | Some PowerShell Functionality | |
This Category Links | ||
Category: | IoT Index: | IoT |
Next: > | .NET Core on IoT | Getting started on Win 10 IoT Core |
< Prev: | .NET Core on IoT | Some key facts |