System.IO.Ports 9.0.0-preview.2.24128.5

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 Stream object through the BaseStream property

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

Feedback & Contributing

System.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on System.IO.Ports.

Packages Downloads
AME.Extensions
Densen的.net常用扩展库
37
AME.Extensions
Densen的.net常用扩展库
38
AME.Extensions
Densen的.net常用扩展库
41
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.
35
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.
36
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.
37
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.
38
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.
40
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 Core as well as .NET Standard.
35
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 Core as well as .NET Standard.
36
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 Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
35
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 Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
36
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 Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
38
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 Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
731

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

  • No dependencies.

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
10.0.0 11 11/14/2025
10.0.0-rc.2.25502.107 12 10/22/2025
10.0.0-rc.1.25451.107 18 09/10/2025
10.0.0-preview.7.25380.108 10 08/15/2025
10.0.0-preview.6.25358.103 20 07/19/2025
10.0.0-preview.5.25277.114 20 06/08/2025
10.0.0-preview.4.25258.110 19 05/17/2025
10.0.0-preview.3.25171.5 20 04/12/2025
10.0.0-preview.2.25163.2 22 03/31/2025
10.0.0-preview.1.25080.5 21 03/11/2025
9.0.11 9 11/15/2025
9.0.10 10 10/18/2025
9.0.9 17 09/14/2025
9.0.8 14 08/10/2025
9.0.7 17 07/12/2025
9.0.6 16 06/12/2025
9.0.5 20 05/18/2025
9.0.4 25 04/10/2025
9.0.3 23 03/11/2025
9.0.2 23 03/11/2025
9.0.1 28 01/23/2025
9.0.0 40 11/14/2024
9.0.0-rc.2.24473.5 25 11/05/2024
9.0.0-rc.1.24431.7 28 11/11/2024
9.0.0-preview.7.24405.7 31 11/21/2024
9.0.0-preview.6.24327.7 34 11/09/2024
9.0.0-preview.5.24306.7 27 11/18/2024
9.0.0-preview.4.24266.19 36 05/21/2024
9.0.0-preview.3.24172.9 32 05/01/2024
9.0.0-preview.2.24128.5 28 05/02/2024
9.0.0-preview.1.24080.9 34 04/30/2024
8.0.0 51 12/10/2023
8.0.0-rc.2.23479.6 30 11/08/2024
8.0.0-rc.1.23419.4 26 05/01/2024
8.0.0-preview.7.23375.6 31 05/01/2024
8.0.0-preview.6.23329.7 25 06/01/2024
8.0.0-preview.5.23280.8 29 05/07/2024
8.0.0-preview.4.23259.5 33 06/04/2023
8.0.0-preview.3.23174.8 31 04/30/2024
8.0.0-preview.2.23128.3 31 05/02/2024
8.0.0-preview.1.23110.8 29 04/22/2024
7.0.0 26 05/19/2024
7.0.0-rc.2.22472.3 31 05/01/2024
7.0.0-rc.1.22426.10 30 04/22/2024
7.0.0-preview.7.22375.6 29 05/14/2024
7.0.0-preview.6.22324.4 29 05/11/2024
7.0.0-preview.5.22301.12 37 05/25/2024
7.0.0-preview.4.22229.4 22 06/01/2024
7.0.0-preview.3.22175.4 31 05/03/2024
7.0.0-preview.2.22152.2 31 06/01/2024
7.0.0-preview.1.22076.8 30 06/01/2024
6.0.2-mauipre.1.22102.15 30 05/27/2024
6.0.2-mauipre.1.22054.8 33 05/05/2024
6.0.0 33 06/01/2024
6.0.0-rc.2.21480.5 32 05/21/2024
6.0.0-rc.1.21451.13 28 05/25/2024
6.0.0-preview.7.21377.19 23 05/06/2024
6.0.0-preview.6.21352.12 33 04/30/2024
6.0.0-preview.5.21301.5 26 05/14/2024
6.0.0-preview.4.21253.7 29 05/12/2024
6.0.0-preview.3.21201.4 27 05/24/2024
6.0.0-preview.2.21154.6 28 04/30/2024
6.0.0-preview.1.21102.12 32 05/01/2024
5.0.1 36 04/09/2024
5.0.0 40 11/02/2022
5.0.0-rc.2.20475.5 31 05/11/2024
5.0.0-rc.1.20451.14 30 04/30/2024
5.0.0-preview.8.20407.11 28 06/01/2024
5.0.0-preview.7.20364.11 22 05/21/2024
5.0.0-preview.6.20305.6 32 06/01/2024
5.0.0-preview.5.20278.1 27 05/23/2024
5.0.0-preview.4.20251.6 27 05/14/2024
5.0.0-preview.3.20214.6 29 05/26/2024
5.0.0-preview.2.20160.6 30 06/01/2024
5.0.0-preview.1.20120.5 28 05/27/2024
4.7.0 728 03/03/2023
4.7.0-preview3.19551.4 29 04/30/2024
4.7.0-preview2.19523.17 29 05/18/2024
4.7.0-preview1.19504.10 31 04/30/2024
4.6.0 40 04/09/2024
4.6.0-rc1.19456.4 30 11/09/2024
4.6.0-preview9.19421.4 34 05/11/2024
4.6.0-preview9.19416.11 29 05/25/2024
4.6.0-preview8.19405.3 25 05/24/2024
4.6.0-preview7.19362.9 26 05/24/2024
4.6.0-preview6.19303.8 29 05/24/2024
4.6.0-preview6.19264.9 31 04/30/2024
4.6.0-preview5.19224.8 31 05/10/2024
4.6.0-preview4.19212.13 32 05/10/2024
4.6.0-preview3.19128.7 34 04/30/2024
4.6.0-preview.19073.11 31 05/24/2024
4.6.0-preview.18571.3 28 05/02/2024
4.5.0 30 05/21/2024
4.5.0-rc1 32 06/01/2024
4.5.0-preview2-26406-04 30 05/23/2024
4.5.0-preview1-26216-02 28 05/05/2024
4.5.0-preview1-25914-04 32 05/01/2024
4.4.0 38 04/09/2024
4.4.0-preview2-25405-01 31 05/14/2024
4.4.0-preview1-25305-02 40 05/12/2024