System.IO.Ports
11.0.0-rc.3.26522.148
Prefix Reserved
dotnet add package System.IO.Ports --version 11.0.0-rc.3.26522.148
NuGet\Install-Package System.IO.Ports -Version 11.0.0-rc.3.26522.148
<PackageReference Include="System.IO.Ports" Version="11.0.0-rc.3.26522.148" />
<PackageVersion Include="System.IO.Ports" Version="11.0.0-rc.3.26522.148" />
<PackageReference Include="System.IO.Ports" />
paket add System.IO.Ports --version 11.0.0-rc.3.26522.148
#r "nuget: System.IO.Ports, 11.0.0-rc.3.26522.148"
#:package System.IO.Ports@11.0.0-rc.3.26522.148
#addin nuget:?package=System.IO.Ports&version=11.0.0-rc.3.26522.148&prerelease
#tool nuget:?package=System.IO.Ports&version=11.0.0-rc.3.26522.148&prerelease
About
System.IO.Ports package provides synchronous serial port file resource. Additionally, the functionality of this class can be wrapped in an internal Stream object, accessible through the BaseStream property, and passed to classes that wrap or use streams.
Key Features
- synchronous and event-driven I/O
- access to pin and break states
- access to serial driver properties
- access to
Streamobject through theBaseStreamproperty
How to Use
using System.IO.Ports;
// Provides list of available serial ports
string[] portNames = SerialPort.GetPortNames();
// First available port
string myPortName = portNames[0];
int baudRate = 9600;
SerialPort sp = new SerialPort(myPortName, baudRate);
sp.Open();
sp.WriteLine("Hello World!");
Main Types
The main type provided by this library is:
SerialPort
Additional Documentation
Related Packages
Feedback & Contributing
System.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- runtime.native.System.IO.Ports (>= 11.0.0-rc.3.26522.148)
-
net10.0
- runtime.native.System.IO.Ports (>= 11.0.0-rc.3.26522.148)
-
net11.0
- runtime.native.System.IO.Ports (>= 11.0.0-rc.3.26522.148)
NuGet packages (1.0K)
Showing the top 5 NuGet packages that depend on System.IO.Ports:
| Package | Downloads |
|---|---|
|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
|
Microsoft.PowerShell.SDK
Runtime for hosting PowerShell |
|
|
FluentModbus
Lightweight and fast client and server implementation of the Modbus protocol (TCP/RTU, Sync/Async). |
|
|
NModbus.Serial
NModbus.Serial Class Library |
|
|
LibreHardwareMonitorLib
Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. |
GitHub repositories (89)
Showing the top 20 popular GitHub repositories that depend on System.IO.Ports:
| Repository | Stars |
|---|---|
|
LibreHardwareMonitor/LibreHardwareMonitor
Libre Hardware Monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
|
|
|
1Remote/1Remote
One Remote Access Manager to Rule Them All
|
|
|
timschneeb/GalaxyBudsClient
Unofficial Galaxy Buds Manager for Windows, macOS, Linux, and Android
|
|
|
tixl3d/tixl
TiXL is an open source software to create realtime motion graphics.
|
|
|
CosmosOS/Cosmos
Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
|
|
|
dotnet/macios
.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
|
|
|
dotnet/iot
This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.
|
|
|
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
|
|
|
Valkirie/HandheldCompanion
A touch optimized GUI to increase your handheld gaming computer experience.
|
|
|
zhaopeiym/IoTClient
This is an IoT device communication protocol implementation client, which will include common industrial communication protocols such as mainstream PLC communication reading, ModBus protocol, and Bacnet protocol. This component is open source and free for life, using the most relaxed MIT open source agreement, you can modify and commercial use at will (commercial use please evaluate and test). 这是一个物联网设备通讯协议实现客户端,将会包括主流PLC通信读取、ModBus协议、Bacnet协议等常用工业通讯协议。本组件终身开源免费,采用最宽松的MIT开源协议,您可以随意修改和商业使用(商业使用请做好评估和测试)。
|
|
|
CXWorld/CapFrameX
Frametime capture and analysis tool
|
|
|
RRQM/TouchSocket
TouchSocket is an integrated .NET networking framework that includes modules for socket, TCP, UDP, SSL, named pipes, HTTP, WebSocket, RPC, and more. It offers a one-stop solution for TCP packet issues and enables quick implementation of custom data message parsing using protocol templates.
|
|
|
rossmann-engineering/EasyModbusTCP.NET
Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
|
|
|
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
|
|
|
NModbus/NModbus
NModbus is a C# implementation of the Modbus protocol.
|
|
|
TheCod3rYouTube/PS5NorModifier
The PS5 Nor Modifier is an easy to use Windows based application to rewrite your PS5 NOR file. This can be useful if your NOR is corrupt, or if you have a disc edition console that needs to be converted to digital in order to bypass the disc drive checks
|
|
|
dotnet/dotnet-api-docs
.NET API reference documentation (.NET 8+)
|
|
|
uholeschak/ediabaslib
.NET BMW and VAG Ediabas interpreter library
|
|
|
DotSpatial/DotSpatial
Geographic information system library written for .NET
|
|
|
dnobori/DN_SuperBook_PDF_Converter
DN_SuperBook_PDF_Converter - スキャン書籍 PDF をデジタル書籍並みに大変クリアに読みやすくする AI PDF 高品質化・各種調整ツール
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-rc.3.26522.148 | 532 | 10/25/2026 |
| 11.0.0-rc.2.26504.105 | 2,213 | 10/13/2026 |
| 11.0.0-rc.1.26425.128 | 6,937 | 9/8/2026 |
| 11.0.0-preview.7.26381.103 | 4,347 | 8/11/2026 |
| 11.0.0-preview.6.26359.118 | 7,268 | 7/14/2026 |
| 11.0.0-preview.5.26302.115 | 4,691 | 6/9/2026 |
| 10.0.14 | 67,716 | 10/25/2026 |
| 10.0.13 | 201,353 | 10/13/2026 |
| 10.0.12 | 426,591 | 9/8/2026 |
| 10.0.11 | 407,098 | 8/11/2026 |
| 10.0.10 | 666,124 | 7/14/2026 |
| 10.0.9 | 519,998 | 6/9/2026 |
| 10.0.8 | 468,832 | 5/12/2026 |
| 9.0.22 | 1,331 | 10/25/2026 |
| 9.0.21 | 35,532 | 10/13/2026 |
| 9.0.20 | 14,574 | 9/8/2026 |
| 9.0.19 | 40,618 | 8/11/2026 |
| 9.0.18 | 110,308 | 7/14/2026 |
| 9.0.17 | 36,933 | 6/9/2026 |
| 9.0.16 | 52,208 | 5/12/2026 |