![]() |
VOOZH | about |
dotnet add package runtime.native.System.IO.Ports --version 10.0.9
NuGet\Install-Package runtime.native.System.IO.Ports -Version 10.0.9
<PackageReference Include="runtime.native.System.IO.Ports" Version="10.0.9" />
<PackageVersion Include="runtime.native.System.IO.Ports" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="runtime.native.System.IO.Ports" />Project file
paket add runtime.native.System.IO.Ports --version 10.0.9
#r "nuget: runtime.native.System.IO.Ports, 10.0.9"
#:package runtime.native.System.IO.Ports@10.0.9
#addin nuget:?package=runtime.native.System.IO.Ports&version=10.0.9Install as a Cake Addin
#tool nuget:?package=runtime.native.System.IO.Ports&version=10.0.9Install as a Cake Tool
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.
Stream object through the BaseStream propertyusing 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!");
The main type provided by this library is:
SerialPortSystem.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Learn more about Target Frameworks and .NET Standard.
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 |
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 |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 943 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 2,197 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 3,181 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 2,759 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 3,973 | 2/10/2026 |
| 10.0.9 | 41,275 | 6/9/2026 |
| 10.0.8 | 182,360 | 5/12/2026 |
| 10.0.7 | 234,774 | 4/21/2026 |
| 10.0.6 | 165,469 | 4/14/2026 |
| 10.0.5 | 398,249 | 3/12/2026 |
| 10.0.4 | 28,568 | 3/10/2026 |
| 10.0.3 | 290,800 | 2/10/2026 |
| 10.0.2 | 517,467 | 1/13/2026 |
| 10.0.1 | 361,140 | 12/9/2025 |
| 9.0.17 | 3,258 | 6/9/2026 |
| 9.0.16 | 15,328 | 5/12/2026 |
| 9.0.15 | 191,783 | 4/14/2026 |
| 9.0.14 | 72,017 | 3/10/2026 |
| 9.0.13 | 15,727 | 2/10/2026 |
| 9.0.12 | 39,303 | 1/13/2026 |