{"id":2048,"date":"2020-05-02T19:19:35","date_gmt":"2020-05-02T19:19:35","guid":{"rendered":"https:\/\/wordpress-634681-2064240.cloudwaysapps.com\/?p=2048"},"modified":"2020-09-04T19:37:05","modified_gmt":"2020-09-04T19:37:05","slug":"explorations-in-dot-net-core-3-0-for-raspberry-pi-part-5","status":"publish","type":"post","link":"https:\/\/www.petecodes.co.uk\/explorations-in-dot-net-core-3-0-for-raspberry-pi-part-5\/","title":{"rendered":"Explorations in Dot Net Core 3 for Raspberry Pi – Part 5 – Remote Deployment and Debugging"},"content":{"rendered":"\n

This is part 5 of a (at least) 5 part blog series on Dot Net Core on the Raspberry Pi….<\/em>

You can see Part 1 – Installation and Hello World – right here<\/a>… <\/em>
You can see
Part 2 – GPIO – right here<\/a>… <\/em>
You can see <\/em>
Part 3 – Sending Azure IoT Hub Messages – right here…<\/em><\/a>
You can see <\/em>
Part 4 – Receiving Azure IoT Hub Messages – right here…<\/em><\/a> <\/p>\n\n\n\n

On September 25th 2019<\/a>, the Dot Net Team released version 3.0 of the Dot Net Core Framework at .Net Conf.<\/a><\/p>\n\n\n\n

To join in the fun, I held a special with Notts IoT<\/a>, the IoT group I organise in Nottingham, where I gave a talk on Dot Net Core 3.0 on the Raspberry Pi.<\/a> <\/p>\n\n\n\n

This blog post series is what I learnt along the way to preparing for the talk as well as afterwards…! <\/p>\n\n\n\n

Previously on Pete Codes…<\/h2>\n\n\n\n

In the last blog post<\/a> we’d updated our Console app so that it could receive a message from an Azure IoT Hub and display that message in the console.<\/p>\n\n\n\n

In this post we’ll setup VS Code and our Pi to allow for Remote Deployment and Debugging, so that we don’t need to edit and build on the Pi and also we can debug the app from VS Code.<\/p>\n\n\n\n

Going Remote<\/h2>\n\n\n\n

If you’ve followed along with the previous blog, you’ll already have installed the Dot Net Core 3.0 binaries and runtimes, have a console app running that flashes an LED, sends a message to an IoT Hub when you press a button and receives a message from the IoT Hub.<\/p>\n\n\n\n

Our next step is to allow us to begin coding on our far more powerful PC, deploy the built binaries to the Pi and Debug that code remotely.<\/p>\n\n\n\n

I did try using the Remote Development Extension<\/a> but it didn’t do everything I wanted to do… Primarily to develop code on my local machine, then deploy and debug directly from VS Code.<\/p>\n\n\n\n

I will go back that extension and give it another go, but in the mean time… This should work just fine!<\/p>\n\n\n\n

Moving Parts<\/h2>\n\n\n\n

There’s quite a few individual pieces of prep we need to do to achieve this;<\/p>\n\n\n\n