In honor of last week's PI Day, Raspberry Pi 2 for .NET Developers

Sign in to queue


Today's project from Jan Tielens is one that will hopefully help hold us over until Windows 10 is available for Raspberry Pi 2. It gets us up and coding today... :)

Getting started with the Raspberry Pi 2, for .NET developers

So you got your shiny new Raspberry Pi 2 (or the slightly older, original Raspberry Pi), and you want to do something with it as a .NET developer. Of course you’ve read the news yesterday that Windows 10 will run on the Raspberry Pi 2, but today it’s not yet available. However, even today it is possible to leverage your .NET super powers and write some code that runs on the Pi. In this short walkthrough I’ll show you how to get started.

Things you will need:

  • 1 Raspberry Pi or a Raspberry Pi 2 (obviously)
  • 1 4GB or bigger SD card (for the Pi) or MicroSD card (for the Pi 2), this will be the Pi’s “hard disk drive”
  • 1 UTP cable to connect the Pi to your router/hub/switch (so it can connect to the internet)
  • 1 Windows laptop/desktop/hybrid/tablet (of course not necessary to use the Pi, but I’ll use the Windows machine in my guide to write the SD card)
  • Optionally: USB mouse and keyboard, HDMI screen. As mentioned, this is optional since you can also run your Pi headless (without monitor attached). In that you’ll connect to it via remote prompt (SSH) and/or remote desktop (RDP, VNC …). In this guide I’ll show you both options.

Step 1: download and write the Raspbian Linux image

Step 2: Boot the Pi for the first time

Step 3: (optional) Connect to your Pi remotely

Step 4: Configure & update your Raspberry Pi

Step 5: (optional) Enable Remote Desktop connections and/or VNC


Step 6: Install Mono and MonoDevelop

Step 7: Use MonoDevelop to write some C#

Step 8: (optional) Use Visual Studio to write code


Where to go from here?

I showed you how to get up and running with the Raspberry Pi, leveraging your existing .NET skills. Now you know the basics, you can try for example to host an ASP.NET application using OWIN (see my walkthrough). Really the sky is the limit! If you’ve got feedback, a question, a cool example, … feel free to drop a comment below.


Coding4Fun, Mono, IoT

The Discussion

Add Your 2 Cents