RS232 library for .net core

家住魔仙堡 提交于 2019-12-10 12:45:41

问题


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

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).

Is there any alternative out there?

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)


回答1:


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

Have a look at the pull request: https://github.com/jcurl/SerialPortStream/pull/13

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



来源:https://stackoverflow.com/questions/40689840/rs232-library-for-net-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!