System.IO.Ports only availble on windows, but im using windows - .NET6
Borda Ákos
15
Reputation points
So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port:
System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows
I am currently using windows 11.
Also i tried setting the target OS to windows in the .csproj file.