I'm trying to run some simple code to read from serial port on a Linux machine but I keep getting the following error.
System.PlatformNotSupportedException: System.IO.Ports is currently only supported on Windows.
The development machine uses Rider installed on pop os and the project is a Net6 console app.
The sample code is really straight forward
using System.IO.Ports;
var s = new SerialPort("/dev/ttyUSB0");
Any help will be appreciated.