I am trying to run this tutorial on my Raspberry Pi 4 Model B with mono via Remote-Desktop. The application runs on .NET Framework 4.8.
While other simple executables (also with GUI) run smooth, this BlinkTutorial always quits with the following exception:
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Device.Gpio, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
File name: 'System.Device.Gpio, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Device.Gpio, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
File name: 'System.Device.Gpio, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Obviously it has something to do with the GPIOs. I am relatively new to C# and this is my first time using a NuGet-Package (to access the GPIOS). I am mentioning this because - even if I don't think so - maybe there a chance I did something wrong while adding it to my project? Also I am surprised that there is no site note in the official tutorial about this Exception. Maybe there is an easy fix and I am just blind?
I already found this article leading to this solution but I honestly don't really get the hang of it. Is the solution written somewhere there? Can someone please explain it a bit more beginner-friendly?
Thanks in approach, I am really looking foreward to learn from you all!