runtime.native.System.IO.Ports 9.0.4

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package runtime.native.System.IO.Ports --version 9.0.4
                    
NuGet\Install-Package runtime.native.System.IO.Ports -Version 9.0.4
                    
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="9.0.4" />
                    
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="9.0.4" />
                    
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 9.0.4
                    
#r "nuget: runtime.native.System.IO.Ports, 9.0.4"
                    
#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.
#addin nuget:?package=runtime.native.System.IO.Ports&version=9.0.4
                    
Install runtime.native.System.IO.Ports as a Cake Addin
#tool nuget:?package=runtime.native.System.IO.Ports&version=9.0.4
                    
Install runtime.native.System.IO.Ports 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.
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
Version Downloads Last updated
10.0.0-preview.3.25171.5 1,796 4/10/2025
10.0.0-preview.2.25163.2 3,495 3/18/2025
10.0.0-preview.1.25080.5 2,327 2/25/2025
9.0.4 51,822 4/8/2025
9.0.3 108,403 3/11/2025
9.0.2 135,754 2/11/2025
9.0.1 307,866 1/14/2025
9.0.0 434,408 11/12/2024
9.0.0-rc.2.24473.5 26,963 10/8/2024
9.0.0-rc.1.24431.7 9,268 9/10/2024
9.0.0-preview.7.24405.7 6,966 8/13/2024
9.0.0-preview.6.24327.7 14,115 7/9/2024
9.0.0-preview.5.24306.7 6,989 6/11/2024
9.0.0-preview.4.24266.19 3,463 5/21/2024
9.0.0-preview.3.24172.9 8,814 4/11/2024
9.0.0-preview.2.24128.5 18,433 3/12/2024
9.0.0-preview.1.24080.9 14,154 2/13/2024
8.0.0 8,611,186 11/14/2023
8.0.0-rc.2.23479.6 18,342 10/10/2023
8.0.0-rc.1.23419.4 20,807 9/12/2023
8.0.0-preview.7.23375.6 11,165 8/8/2023
8.0.0-preview.6.23329.7 3,178 7/11/2023
8.0.0-preview.5.23280.8 6,204 6/13/2023
8.0.0-preview.4.23259.5 13,004 5/16/2023
8.0.0-preview.3.23174.8 21,486 4/11/2023
8.0.0-preview.2.23128.3 15,817 3/14/2023
8.0.0-preview.1.23110.8 10,897 2/21/2023
7.0.0 6,214,965 11/7/2022
7.0.0-rc.2.22472.3 10,132 10/11/2022
7.0.0-rc.1.22426.10 63,616 9/14/2022
7.0.0-preview.7.22375.6 71,130 8/9/2022
7.0.0-preview.6.22324.4 1,808 7/12/2022
7.0.0-preview.5.22301.12 2,423 6/14/2022
7.0.0-preview.4.22229.4 12,098 5/10/2022
7.0.0-preview.3.22175.4 4,436 4/13/2022
7.0.0-preview.2.22152.2 14,639 3/14/2022
7.0.0-preview.1.22076.8 3,512 2/17/2022
6.0.0 13,176,227 11/8/2021
6.0.0-rc.2.21480.5 5,996 10/12/2021
6.0.0-rc.1.21451.13 44,876 9/14/2021
6.0.0-preview.7.21377.19 3,874 8/10/2021
6.0.0-preview.6.21352.12 3,431 7/14/2021
6.0.0-preview.5.21301.5 9,919 6/15/2021
6.0.0-preview.4.21253.7 20,924 5/24/2021
6.0.0-preview.3.21201.4 8,976 4/8/2021
6.0.0-preview.2.21154.6 9,291 3/11/2021
6.0.0-preview.1.21102.12 7,438 2/12/2021
5.0.1 2,048,591 3/9/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 22,449,515 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 10,143 10/13/2020
5.0.0-rc.1.20451.14 6,696 9/14/2020
5.0.0-preview.8.20407.11 11,980 8/25/2020
5.0.0-preview.7.20364.11 31,716 7/21/2020
5.0.0-preview.6.20305.6 7,513 6/25/2020
5.0.0-preview.5.20278.1 4,408 6/10/2020
5.0.0-preview.4.20251.6 459 5/18/2020
5.0.0-preview.3.20214.6 533 4/23/2020
4.7.0 8,876,527 12/3/2019
4.7.0-preview3.19551.4 4,424 11/13/2019
4.7.0-preview2.19523.17 14,235 11/1/2019
4.7.0-preview1.19504.10 10,599 10/15/2019
4.6.0 1,408,214 9/23/2019
4.6.0-rc1.19456.4 4,867 9/16/2019
4.6.0-preview9.19421.4 3,415 9/4/2019
4.6.0-preview9.19416.11 456 9/4/2019
4.6.0-preview8.19405.3 9,901 8/13/2019
4.6.0-preview7.19362.9 12,166 7/23/2019
4.6.0-preview6.19303.8 51,765 6/12/2019
4.6.0-preview6.19264.9 442 9/4/2019
4.6.0-preview5.19224.8 31,092 5/6/2019
4.6.0-preview4.19212.13 4,122 4/18/2019
4.6.0-preview3.19128.7 19,044 3/6/2019