runtime.native.System.IO.Ports
10.0.0-preview.5.25277.114
This is a prerelease version of runtime.native.System.IO.Ports.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package runtime.native.System.IO.Ports --version 10.0.0-preview.5.25277.114
NuGet\Install-Package runtime.native.System.IO.Ports -Version 10.0.0-preview.5.25277.114
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.5.25277.114" />
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.5.25277.114" />
<PackageReference Include="runtime.native.System.IO.Ports" />
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.5.25277.114
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: runtime.native.System.IO.Ports, 10.0.0-preview.5.25277.114"
#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.5.25277.114
#: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.5.25277.114&prerelease
#tool nuget:?package=runtime.native.System.IO.Ports&version=10.0.0-preview.5.25277.114&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 theBaseStream
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
Related Packages
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.
-
.NETStandard 2.0
- runtime.android-arm.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.android-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.android-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.android-x86.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-arm.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-bionic-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-bionic-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-musl-arm.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-musl-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-musl-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.linux-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.maccatalyst-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.maccatalyst-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.osx-arm64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
- runtime.osx-x64.runtime.native.System.IO.Ports (>= 10.0.0-preview.5.25277.114)
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.7.25380.108 | 0 | 8/11/2025 |
10.0.0-preview.7.25380.105 | 0 | 8/6/2025 |
10.0.0-preview.6.25358.103 | 0 | 7/17/2025 |
10.0.0-preview.6.25321.102 | 0 | 6/25/2025 |
10.0.0-preview.5.25280.105 | 0 | 6/2/2025 |
10.0.0-preview.5.25277.114 | 0 | 6/3/2025 |
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |
9.0.7 | 0 | 7/11/2025 |