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.
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more