Set up a Raspberry Pi to support .NET and develop/debug in Visual Studio Code on Windows - PART 2
Автор: All The Gear - No Idea
Загружено: 2022-02-01
Просмотров: 6804
Over the next few videos, I will demonstrate how to set up a 'headless' (no display/keyboard/mouse) Raspberry Pi (I'm using a Raspberry Pi Zero 2 W) for .NET (Version 6) development. This is so we/you can use Visual Studio Code to write C#, target the Raspberry Pi and run/debug the code remotely from Windows. Whilst Visual Studio Code is now available on the Raspberry Pi directly, I'd rather develop on my Windows desktop and run/debug from there, if you want to do the same, follow along with me.
In this video we're going to install .NET and the .NET Debugger on the Raspberry Pi, then create a Visual Studio Code project and configure it to target the Raspberry Pi.
Chapters
========
0:00 Introduction
1:20 Install .NET on the Raspberry Pi
1:54 Install .NET Debugger on the Raspberry Pi
2:30 Create a new .NET Project
3:25 Modify launch.json
4:01 Modify tasks.json
4:58 Run the code
6:15 Debug with a break point
6:58 Smoke n' Mirrors
7:34 Close
** Slight update in that I've moved all the text, files, commands to GitHub for greater accuracy
** Hoping this provides a better experience
Instructions, files and command are available on GitHub here:
https://github.com/ATGNI/RaspberryPi/...
Instructions are here:
https://github.com/ATGNI/RaspberryPi/...
The Complete launch.json file is here:
https://github.com/ATGNI/RaspberryPi/...
The Partial launch.json file is here:
https://github.com/ATGNI/RaspberryPi/...
The Complete tasks.json file is here:
https://github.com/ATGNI/RaspberryPi/...
The Partial tasks.json file is here:
https://github.com/ATGNI/RaspberryPi/...
Behind The Scenes (BTS)
=====================
Riding on the back of the success of Part 1 (20 views!), I've used much the same techniques in this video. I used ShareX software to record the monitor whilst I used a Panasonic S1H with a Sigma 20mm Art lens (f2.2) at 24fps 4k, set to manual focusing. Audio is provided by a Rode Lavalier plugged into the S1H. I have a SmallHD monitor mounted on top facing me to help with focusing. Lighting is from one light, being reflected from a large white card. Background lighting provided by the AtomCube RGB LED light at the back of the room. All the screens are pre-recorded, which i then play back and record video/audio on the top. It gives the illusion that I'm typing realtime whilst talking and looking into the camera. Editing as usual in Adobe Premiere Pro. This video was quicker to edit than the previous one. The only slight problem with my appearance in this one is the flickering of eyes left and right as I try to discretely (fail!) read my notes stuck to the lens of the camera.
Finally. Decided to move all the technical detail out into a space (GitHub) to make it easier to read, and also copy/paste the text sections and commands. The Description box has a maximum limit of 5,000 characters, and, imposes restrictions on certain characters like 'greater-than', so this is a better move. Easier to update and track.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: