NET的RS232库 [英] RS232 library for .net core

查看:115
本文介绍了NET的RS232库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在.Net Core中开发应用程序,其中之一需要访问串行端口.

We are developing applications in .Net Core and one of them require to access a serial port.

当我了解到System.IO.Ports不会在.Net Core中实现时,我正在寻找一个提供该功能但无法与.net Core兼容的nuget库(VS Code显示错误消息).

As I learned that System.IO.Ports won't be implemented in .Net Core, I was looking for a nuget library that supplies that functionality, but couldn't get one compatible with .net core (VS Code is showing an error message).

那里还有其他选择吗?

更新:我发现在移植到.Net Core时已考虑了官方的SerialPort API(请参见

UPDATE: I found that the official SerialPort API is being taken into consideration for porting to .Net Core (see https://github.com/dotnet/corefx/issues/984)

推荐答案

我设法编译了 https://github. com/jcurl/SerialPortStream 进行了netstandard1.5的修改,

I managed to compile https://github.com/jcurl/SerialPortStream for netstandard1.5 with some minor modifications.

看看拉取请求: https://github.com/jcurl/SerialPortStream/拉/13

实验性nuget软件包: https://www.nuget.org/packages/SerialPortStreamCore/2.1.0

Experimental nuget package: https://www.nuget.org/packages/SerialPortStreamCore/2.1.0

这篇关于NET的RS232库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆