runtime.native.System.IO.Ports 9.0.0-rc.2.24473.5

Prefix Reserved
This is a prerelease version of runtime.native.System.IO.Ports.
There is a newer version of this package available.
See the version list below for details.
dotnet add package runtime.native.System.IO.Ports --version 9.0.0-rc.2.24473.5                
NuGet\Install-Package runtime.native.System.IO.Ports -Version 9.0.0-rc.2.24473.5                
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.0-rc.2.24473.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add runtime.native.System.IO.Ports --version 9.0.0-rc.2.24473.5                
#r "nuget: runtime.native.System.IO.Ports, 9.0.0-rc.2.24473.5"                
#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.
// Install runtime.native.System.IO.Ports as a Cake Addin
#addin nuget:?package=runtime.native.System.IO.Ports&version=9.0.0-rc.2.24473.5&prerelease

// Install runtime.native.System.IO.Ports as a Cake Tool
#tool nuget:?package=runtime.native.System.IO.Ports&version=9.0.0-rc.2.24473.5&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 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 (4)

Showing the top 4 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

Microsoft.PowerShell.SDK

Runtime for hosting PowerShell

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 from source
Version Downloads Last updated
9.0.0 8,311 11/12/2024
9.0.0-rc.2.24473.5 15,776 10/8/2024
9.0.0-rc.1.24431.7 8,039 9/10/2024
9.0.0-preview.7.24405.7 6,593 8/13/2024
9.0.0-preview.6.24327.7 12,231 7/9/2024
9.0.0-preview.5.24306.7 6,371 6/11/2024
9.0.0-preview.4.24266.19 3,270 5/21/2024
9.0.0-preview.3.24172.9 8,509 4/11/2024
9.0.0-preview.2.24128.5 15,368 3/12/2024
9.0.0-preview.1.24080.9 10,768 2/13/2024
8.0.0 5,085,873 11/14/2023
8.0.0-rc.2.23479.6 17,056 10/10/2023
8.0.0-rc.1.23419.4 20,576 9/12/2023
8.0.0-preview.7.23375.6 10,755 8/8/2023
8.0.0-preview.6.23329.7 2,811 7/11/2023
8.0.0-preview.5.23280.8 4,828 6/13/2023
8.0.0-preview.4.23259.5 12,814 5/16/2023
8.0.0-preview.3.23174.8 21,079 4/11/2023
8.0.0-preview.2.23128.3 15,350 3/14/2023
8.0.0-preview.1.23110.8 10,705 2/21/2023
7.0.0 5,668,212 11/7/2022
7.0.0-rc.2.22472.3 9,837 10/11/2022
7.0.0-rc.1.22426.10 63,378 9/14/2022
7.0.0-preview.7.22375.6 59,710 8/9/2022
7.0.0-preview.6.22324.4 1,723 7/12/2022
7.0.0-preview.5.22301.12 2,267 6/14/2022
7.0.0-preview.4.22229.4 11,670 5/10/2022
7.0.0-preview.3.22175.4 4,342 4/13/2022
7.0.0-preview.2.22152.2 14,546 3/14/2022
7.0.0-preview.1.22076.8 3,428 2/17/2022
6.0.0 11,792,001 11/8/2021
6.0.0-rc.2.21480.5 5,867 10/12/2021
6.0.0-rc.1.21451.13 40,959 9/14/2021
6.0.0-preview.7.21377.19 3,730 8/10/2021
6.0.0-preview.6.21352.12 3,347 7/14/2021
6.0.0-preview.5.21301.5 9,419 6/15/2021
6.0.0-preview.4.21253.7 20,698 5/24/2021
6.0.0-preview.3.21201.4 8,796 4/8/2021
6.0.0-preview.2.21154.6 8,974 3/11/2021
6.0.0-preview.1.21102.12 6,949 2/12/2021
5.0.1 1,897,592 3/9/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 21,178,042 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 9,947 10/13/2020
5.0.0-rc.1.20451.14 6,278 9/14/2020
5.0.0-preview.8.20407.11 10,703 8/25/2020
5.0.0-preview.7.20364.11 30,303 7/21/2020
5.0.0-preview.6.20305.6 7,412 6/25/2020
5.0.0-preview.5.20278.1 4,286 6/10/2020
5.0.0-preview.4.20251.6 391 5/18/2020
5.0.0-preview.3.20214.6 463 4/23/2020
4.7.0 8,583,061 12/3/2019
4.7.0-preview3.19551.4 4,355 11/13/2019
4.7.0-preview2.19523.17 13,405 11/1/2019
4.7.0-preview1.19504.10 10,488 10/15/2019
4.6.0 1,345,181 9/23/2019
4.6.0-rc1.19456.4 4,754 9/16/2019
4.6.0-preview9.19421.4 3,325 9/4/2019
4.6.0-preview9.19416.11 382 9/4/2019
4.6.0-preview8.19405.3 9,770 8/13/2019
4.6.0-preview7.19362.9 11,795 7/23/2019
4.6.0-preview6.19303.8 49,928 6/12/2019
4.6.0-preview6.19264.9 373 9/4/2019
4.6.0-preview5.19224.8 30,249 5/6/2019
4.6.0-preview4.19212.13 4,023 4/18/2019
4.6.0-preview3.19128.7 18,648 3/6/2019