System.IO.Ports is currently only supported on Windows

在Unigine中使用串口,报System.IO.Ports is currently only supported on Windows错误。
后来发现,框架是.net 5.0.改成6.0或者7.0就好了。
System.IO.Ports is currently only supported on Windows_第1张图片
System.IO.Ports is currently only supported on Windows_第2张图片

你可能感兴趣的:(Unigine,c#,.net)