一、问题点: 自从.net core 2.x 中,已经找不到 serialport 库
二、解决方案:
1、使用需要使用第三方框架,可以直接在 Nuget 中搜索
使用SerialPortStream(第三方库)
2、使用Compatibility引入system.io.port
使用Microsoft.Windows.Compatibility(官方提供的库)nuget下载即可
3、如果使用跨平台的串口可以使用
一、问题点: 自从.net core 2.x 中,已经找不到 serialport 库
二、解决方案:
1、使用需要使用第三方框架,可以直接在 Nuget 中搜索
使用SerialPortStream(第三方库)
2、使用Compatibility引入system.io.port
使用Microsoft.Windows.Compatibility(官方提供的库)nuget下载即可
3、如果使用跨平台的串口可以使用