runtime.native.System.IO.Ports 10.0.0

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 runtime.native.System.IO.Ports.

Packages Downloads
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
5,784
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
512
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
66
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
64
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
62
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
61
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
59
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
59
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
58
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
58
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort When using NuGet 3.x this package requires at least version 3.4.
57
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
57
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort
56

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

Version Downloads Last updated
10.0.0 2 11/17/2025
10.0.0-rc.2.25502.107 7 10/16/2025
10.0.0-rc.1.25451.107 12 09/13/2025
10.0.0-preview.7.25380.108 13 08/15/2025
10.0.0-preview.6.25358.103 15 07/16/2025
10.0.0-preview.5.25277.114 18 06/14/2025
10.0.0-preview.4.25258.110 20 05/14/2025
10.0.0-preview.3.25171.5 20 04/12/2025
10.0.0-preview.2.25163.2 26 03/26/2025
10.0.0-preview.1.25080.5 26 02/27/2025
9.0.11 1 11/22/2025
9.0.10 5 10/16/2025
9.0.9 12 09/13/2025
9.0.8 12 08/10/2025
9.0.7 16 07/13/2025
9.0.6 13 06/13/2025
9.0.5 22 05/15/2025
9.0.4 22 04/14/2025
9.0.3 26 03/13/2025
9.0.2 25 02/16/2025
9.0.1 34 01/20/2025
9.0.0 34 11/13/2024
9.0.0-rc.2.24473.5 33 10/11/2024
9.0.0-rc.1.24431.7 43 09/11/2024
9.0.0-preview.7.24405.7 43 08/14/2024
9.0.0-preview.6.24327.7 41 07/11/2024
9.0.0-preview.5.24306.7 36 06/18/2024
9.0.0-preview.4.24266.19 83 05/24/2024
9.0.0-preview.3.24172.9 38 05/15/2024
9.0.0-preview.2.24128.5 42 03/18/2024
9.0.0-preview.1.24080.9 45 03/05/2024
8.0.0 5,773 11/16/2023
8.0.0-rc.2.23479.6 47 11/04/2023
8.0.0-rc.1.23419.4 47 09/15/2023
8.0.0-preview.7.23375.6 44 08/14/2023
8.0.0-preview.6.23329.7 47 07/15/2023
8.0.0-preview.5.23280.8 49 08/11/2023
8.0.0-preview.4.23259.5 46 08/15/2023
8.0.0-preview.3.23174.8 46 08/07/2023
8.0.0-preview.2.23128.3 46 08/20/2023
8.0.0-preview.1.23110.8 45 08/07/2023
7.0.0 509 05/25/2023
7.0.0-rc.2.22472.3 49 08/06/2023
7.0.0-rc.1.22426.10 51 08/04/2023
7.0.0-preview.7.22375.6 50 08/08/2023
7.0.0-preview.6.22324.4 46 05/28/2023
7.0.0-preview.5.22301.12 44 08/04/2023
7.0.0-preview.4.22229.4 47 08/05/2023
7.0.0-preview.3.22175.4 45 08/17/2023
7.0.0-preview.2.22152.2 47 08/06/2023
7.0.0-preview.1.22076.8 49 08/20/2023
6.0.2-mauipre.1.22102.15 53 08/17/2023
6.0.2-mauipre.1.22054.8 52 08/07/2023
6.0.0 45 06/11/2023
6.0.0-rc.2.21480.5 48 08/07/2023
6.0.0-rc.1.21451.13 44 08/07/2023
6.0.0-preview.7.21377.19 70 10/02/2023
6.0.0-preview.6.21352.12 57 07/07/2023
6.0.0-preview.5.21301.5 51 07/15/2023
6.0.0-preview.4.21253.7 50 06/12/2023
6.0.0-preview.3.21201.4 49 09/24/2023
6.0.0-preview.2.21154.6 49 08/06/2023
6.0.0-preview.1.21102.12 46 08/10/2023
5.0.1 53 08/22/2023
5.0.0 47 08/17/2023
5.0.0-rc.2.20475.5 52 07/14/2023
5.0.0-rc.1.20451.14 42 08/10/2023
5.0.0-preview.8.20407.11 49 08/04/2023
5.0.0-preview.7.20364.11 45 08/05/2023
5.0.0-preview.6.20305.6 47 07/14/2023
5.0.0-preview.5.20278.1 45 10/21/2023
5.0.0-preview.4.20251.6 41 08/14/2023
5.0.0-preview.3.20214.6 49 06/09/2023
4.7.0 54 05/19/2023
4.7.0-preview3.19551.4 50 08/02/2023
4.7.0-preview2.19523.17 51 08/09/2023
4.7.0-preview1.19504.10 44 08/23/2023
4.6.0 56 06/14/2023
4.6.0-rc1.19456.4 47 08/10/2023
4.6.0-preview9.19421.4 52 08/17/2023
4.6.0-preview9.19416.11 51 08/07/2023
4.6.0-preview8.19405.3 48 07/15/2023
4.6.0-preview7.19362.9 49 06/06/2023
4.6.0-preview6.19303.8 54 08/16/2023
4.6.0-preview6.19264.9 46 08/08/2023
4.6.0-preview5.19224.8 50 08/14/2023
4.6.0-preview4.19212.13 62 08/20/2023
4.6.0-preview3.19128.7 52 09/14/2023