runtime.native.System.IO.Ports 10.0.0-preview.6.25358.103

Prefix Reserved
This is a prerelease version of runtime.native.System.IO.Ports.
dotnet add package runtime.native.System.IO.Ports --version 10.0.0-preview.6.25358.103
                    
NuGet\Install-Package runtime.native.System.IO.Ports -Version 10.0.0-preview.6.25358.103
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="runtime.native.System.IO.Ports" Version="10.0.0-preview.6.25358.103" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="runtime.native.System.IO.Ports" Version="10.0.0-preview.6.25358.103" />
                    
Directory.Packages.props
<PackageReference Include="runtime.native.System.IO.Ports" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add runtime.native.System.IO.Ports --version 10.0.0-preview.6.25358.103
                    
#r "nuget: runtime.native.System.IO.Ports, 10.0.0-preview.6.25358.103"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package runtime.native.System.IO.Ports@10.0.0-preview.6.25358.103
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=runtime.native.System.IO.Ports&version=10.0.0-preview.6.25358.103&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=runtime.native.System.IO.Ports&version=10.0.0-preview.6.25358.103&prerelease
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on runtime.native.System.IO.Ports:

Package Downloads
System.IO.Ports

Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort

AdalightNet

Package Description

Yaxiang.IoT.Ports

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on runtime.native.System.IO.Ports:

Repository Stars
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
VSadov/Satori
Experimenting with dotnet runtime.
Version Downloads Last Updated
10.0.0-preview.6.25358.103 717 7/15/2025
10.0.0-preview.5.25277.114 3,552 6/6/2025
10.0.0-preview.4.25258.110 5,607 5/12/2025
10.0.0-preview.3.25171.5 4,415 4/10/2025
10.0.0-preview.2.25163.2 4,422 3/18/2025
10.0.0-preview.1.25080.5 2,767 2/25/2025
9.0.7 26,802 7/8/2025
9.0.6 127,608 6/10/2025
9.0.5 111,359 5/13/2025
9.0.4 320,898 4/8/2025
9.0.3 163,239 3/11/2025
9.0.2 193,122 2/11/2025
9.0.1 394,833 1/14/2025
9.0.0 652,636 11/12/2024
9.0.0-rc.2.24473.5 31,296 10/8/2024
9.0.0-rc.1.24431.7 9,476 9/10/2024
9.0.0-preview.7.24405.7 7,222 8/13/2024
9.0.0-preview.6.24327.7 14,435 7/9/2024
9.0.0-preview.5.24306.7 7,112 6/11/2024
9.0.0-preview.4.24266.19 3,550 5/21/2024
9.0.0-preview.3.24172.9 8,944 4/11/2024
9.0.0-preview.2.24128.5 18,525 3/12/2024
9.0.0-preview.1.24080.9 18,227 2/13/2024
8.0.0 10,347,902 11/14/2023
8.0.0-rc.2.23479.6 19,032 10/10/2023
8.0.0-rc.1.23419.4 20,882 9/12/2023
8.0.0-preview.7.23375.6 11,255 8/8/2023
8.0.0-preview.6.23329.7 3,309 7/11/2023
8.0.0-preview.5.23280.8 6,693 6/13/2023
8.0.0-preview.4.23259.5 13,072 5/16/2023
8.0.0-preview.3.23174.8 21,663 4/11/2023
8.0.0-preview.2.23128.3 15,904 3/14/2023
8.0.0-preview.1.23110.8 11,000 2/21/2023
7.0.0 6,517,976 11/7/2022
7.0.0-rc.2.22472.3 10,196 10/11/2022
7.0.0-rc.1.22426.10 63,717 9/14/2022
7.0.0-preview.7.22375.6 78,929 8/9/2022
7.0.0-preview.6.22324.4 1,903 7/12/2022
7.0.0-preview.5.22301.12 2,495 6/14/2022
7.0.0-preview.4.22229.4 12,300 5/10/2022
7.0.0-preview.3.22175.4 4,501 4/13/2022
7.0.0-preview.2.22152.2 14,703 3/14/2022
7.0.0-preview.1.22076.8 3,572 2/17/2022
6.0.0 13,895,157 11/8/2021
6.0.0-rc.2.21480.5 6,078 10/12/2021
6.0.0-rc.1.21451.13 46,987 9/14/2021
6.0.0-preview.7.21377.19 3,934 8/10/2021
6.0.0-preview.6.21352.12 3,488 7/14/2021
6.0.0-preview.5.21301.5 10,091 6/15/2021
6.0.0-preview.4.21253.7 21,016 5/24/2021
6.0.0-preview.3.21201.4 9,031 4/8/2021
6.0.0-preview.2.21154.6 9,390 3/11/2021
6.0.0-preview.1.21102.12 7,546 2/12/2021
5.0.1 2,124,800 3/9/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 23,391,408 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 10,222 10/13/2020
5.0.0-rc.1.20451.14 6,762 9/14/2020
5.0.0-preview.8.20407.11 12,363 8/25/2020
5.0.0-preview.7.20364.11 32,320 7/21/2020
5.0.0-preview.6.20305.6 7,572 6/25/2020
5.0.0-preview.5.20278.1 4,463 6/10/2020
5.0.0-preview.4.20251.6 517 5/18/2020
5.0.0-preview.3.20214.6 591 4/23/2020
4.7.0 9,027,618 12/3/2019
4.7.0-preview3.19551.4 4,501 11/13/2019
4.7.0-preview2.19523.17 14,544 11/1/2019
4.7.0-preview1.19504.10 10,673 10/15/2019
4.6.0 1,437,937 9/23/2019
4.6.0-rc1.19456.4 4,926 9/16/2019
4.6.0-preview9.19421.4 3,477 9/4/2019
4.6.0-preview9.19416.11 519 9/4/2019
4.6.0-preview8.19405.3 9,970 8/13/2019
4.6.0-preview7.19362.9 12,240 7/23/2019
4.6.0-preview6.19303.8 53,078 6/12/2019
4.6.0-preview6.19264.9 502 9/4/2019
4.6.0-preview5.19224.8 31,577 5/6/2019
4.6.0-preview4.19212.13 4,207 4/18/2019
4.6.0-preview3.19128.7 19,176 3/6/2019