![]() |
VOOZH | about |
dotnet add package HidSharp --version 2.6.4
NuGet\Install-Package HidSharp -Version 2.6.4
<PackageReference Include="HidSharp" Version="2.6.4" />
<PackageVersion Include="HidSharp" Version="2.6.4" />Directory.Packages.props
<PackageReference Include="HidSharp" />Project file
paket add HidSharp --version 2.6.4
#r "nuget: HidSharp, 2.6.4"
#:package HidSharp@2.6.4
#addin nuget:?package=HidSharp&version=2.6.4Install as a Cake Addin
#tool nuget:?package=HidSharp&version=2.6.4Install as a Cake Tool
HIDSharp is a cross-platform .NET wrapper for Windows, MacOS, and Linux (hidraw) USB HID APIs.
It can interface with arbitrary USB HID devices as well as read and write raw reports.
It also includes cross-platform serial port communications and supports interprocess communication for exclusion of HID devices between programs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net35 net35 is compatible. net40 net40 was computed. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package has no dependencies.
Showing the top 5 NuGet packages that depend on HidSharp:
| Package | Downloads |
|---|---|
|
LibreHardwareMonitorLib
Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. |
|
|
OpenHardwareMonitorLib
Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. |
|
|
Buttplug.Server.Managers.HidSharpManager
Buttplug Server Hid Device and Serial Port Subtype Manager, based on the HidSharp Library. (.Net Framework 4.7+/.Net Standard 2.0) |
|
|
HIDDevices
Cross-platform .NET Standard library for asynchronous access to HID Devices (e.g. gamepads, joysticks, etc.) |
|
|
libremoteio
Munts Technologies Remote I/O Library for .Net Standard 2.0 |
Showing the top 20 popular GitHub repositories that depend on HidSharp:
| Repository | Stars |
|---|---|
|
LibreHardwareMonitor/LibreHardwareMonitor
Libre Hardware Monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
|
|
|
nefarius/ScpToolkit
Windows Driver and XInput Wrapper for Sony DualShock 3/4 Controllers
|
|
|
csutorasa/XOutput
DirectInput to XInput wrapper
|
|
|
CXWorld/CapFrameX
Frametime capture and analysis tool
|
|
|
Artemis-RGB/Artemis
Provides advanced unified lighting across many different brands RGB peripherals
|
|
|
Hofknecht/SystemTrayMenu
SystemTrayMenu - Browse and open your files easily
|
|
|
DarthAffe/RGB.NET
The one-stop SDK for RGB-peripherals
|
|
|
OpenMacroBoard/StreamDeckSharp
A simple .NET wrapper for Stream Deck
|
|
|
breadeding/OmenSuperHub
Control Omen laptop performance, fan speeds, and keyboard lighting, and unlock power limits.
|
|
|
leezer3/OpenBVE
OpenBVE- A free train simulator
|
|
|
MobiFlight/MobiFlight-Connector
MobiFlight is an open source project that allows you to create your own home cockpit for your favorite flight simulator in a flexible, affordable and extremely user-friendly way.
|
|
|
EvanMulawski/FanControl.CorsairLink
The unofficial CorsairLink plugin for Fan Control. Adds support for Corsair controllers, liquid coolers, and power supplies. An alternative to iCUE.
|
|
|
habibrehmansg/infopanel
InfoPanel is a desktop visualization software designed to work with HWiNFO sensors via Shared Memory (SHM). It allows users to display system information on their desktop or external displays, including USB-only LCDs like BeadaPanel.
|
|
|
lindexi/lindexi_gd
博客用到的代码
|
|
|
zqhong/RyzenTuner
A tool that supports adjusting the power limit of Ryzen mobile processors and the QoS level and priority of Windows processes
|
|
|
HardwareMonitor/OpenHardwareMonitor
Open hardware monitor - system sensors monitoring application for Windows
|
|
| toonymak1993/GamingConsoleMode | |
|
DCS-Skunkworks/DCSFlightpanels
Saitek/Logitech Flight Panels & Stream Deck support for DCS-World. DCSFlightpanels also functions as a key-emulator for any game e.g. Flaming Cliff Series, Elite Dangerous, War Thunder, IL-2. Click "Releases" link below for latest release.
|
|
|
theantipopau/omencore
OmenCore is an Advanced Performance Control for HP Omen Laptops Take full control of your gaming laptop with precision fan tuning, RGB management, hardware monitoring, and performance optimization.
|
|
|
DarthAffe/KeyboardAudioVisualizer
It's colorful - I like it!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.6.4 | 137,820 | 10/14/2025 |
| 2.6.3 | 6,817 | 9/26/2025 |
| 2.6.2 | 4,170 | 9/24/2025 |
| 2.1.0 | 1,026,326 | 5/4/2019 |
| 2.0.8 | 20,994 | 1/21/2019 |
| 2.0.5 | 9,208 | 11/11/2018 |
| 2.0.2 | 85,566 | 5/5/2018 |
| 2.0.1 | 5,688 | 4/11/2018 |
| 1.5.0 | 76,936 | 5/18/2013 |
| 1.4.0.1 | 1,901 | 4/21/2013 |
| 1.4.0 | 1,925 | 4/20/2013 |
| 1.3.0 | 2,607 | 2/23/2013 |
2.6.4 (October 14, 2025):
Fixed a bug in how negative physical and logical ranges on HID items are encoded.
2.6.3 (September 26, 2025):
Improved shutdown behavior on Windows, Mac, and Linux.
Added HidSharp.Utility.HidSharpLibrary.ManualShutdown(), for cases where the library needs to be unloaded explicitly before program shutdown.
2.6.2 (May 27, 2025):
Improved GetUsbPort() on Linux. It now works when a device is connected through a chain of USB hubs.
2.6.1 (March 5, 2025):
Fixed handoff when using exclusive mode for sharing serial ports between threads and processes.
2.6.0 (January 13, 2025):
Added GetUsbPort() to HidDevice on Linux.
2.5.0 (July 2, 2024):
Added GetSerialPorts() to HidDevice on Linux.
Added GetManufacturer(), GetProductName(), and GetSerialNumber() to SerialDevice on Linux.
ProductID and VendorID are now set for USB serial devices on Linux.
2.4.0 (September 20, 2023):
Made HID device connection detect more quickly on Windows, when the device also has a serial port.
2.3.0 (February 2, 2023):
Fixed a bug on Windows where GetSerialPorts() and GetUsbPort() would sometimes not work.
2.2.1 (October 14, 2022):
Made HIDSharp compatible with the MacOS 10.16 "Ventura" beta.
2.2.0 (August 27, 2021):
Added UninstallDevice on Windows. This only works on .NET Framework presently.
2.1.2 (November 20, 2019):
Fixed negative unit exponent decoding on some devices by handling an ambiguity in the USB HID specification.
2.1.1 (July 13, 2019):
HIDSharp now detects connection and disconnection of serial ports on Linux.
2.1.0 (May 4, 2019):
Added experimental Bluetooth Low Energy support on Windows. This part of the library may change in the future. Let me know how it works for you.
Fixed a race condition in the exclusivity layer.
Fixed a threading bug that cropped up on .NET Core on Linux.
Serial devices that use Windows's buggy usbser.sys driver are now compatible with HIDSharp, including the detection of connection and disconnection.
2.0.8 (January 21, 2019):
Added support in SerialStream for seven data bits and even/odd parity.
Fixed a bug on MacOS which caused HID devices without serial numbers to not show up.
2.0.6 (December 27, 2018):
Added support in SerialStream for two stop bits.
2.0.5 (October 15, 2018):
HIDSharp is now compatible with .NET Core on Linux.
Fixed a garbage collector-related crash on MacOS.
2.0.2 (May 5, 2018):
Fixed a bug on Linux which caused output reports to be sent incorrectly on devices which do not use a Report ID.
DeviceList GetSerialDeviceOrNull() will now match the filesystem name (COM1, /dev/ttyUSB, etc.) as well as DevicePath.
2.0.1 (April 11, 2018):
Fixed a bug on Windows where, in some cases, being unable to reconstruct a device's report descriptor could prevent that device from being opened at all.
HIDSharp now includes assemblies for both .NET Framework 3.5+ and .NET Standard 2.0+.
2.0 (April 9, 2018):
Vastly improved the report descriptor parsing functionality.
You can now decode (nearly) any HID device's reports, on all platforms!
Added GetReportDescriptor support on MacOS version 10.8 and higher.
Added GetReportDescriptor support on Windows. This descriptor is a reconstruction as Windows does not provide a way to directly access this information.
Added an AreDriversBeingInstalled property on DeviceList. (Windows will sometimes close streams of composite HID devices opened while their drivers are being installed.)
Added a Changed event on DeviceList, for detecting device connect and disconnect.
Added a NativeImplementation property to Device.
Added an exclusivity layer, with the ability to request interruption. This is useful for interprocess cooperation, but must be enabled manually.
Added support for serial ports. This is still somewhat buggy on Linux, but on MacOS it works better than the Mono native implementation.
Added support for Linux libudev.so.1.
Exposed GetFileSystemName(). This can be used on Linux to check hidraw permissions.
Fixed max report lengths on MacOS for devices which do not use a Report ID.
Fixed Linux and MacOS not throwing IOException on HID Read() when the device is disconnected.
Fixed Linux support on recent Mono versions.
Fixed 32-bit Linux support (Raspberry Pi).
GetFeature() and SetFeature() now work on Linux.
HIDSharp now uses the Apache open-source license.
Feedback on the new features is appreciated. Some code modifications will be needed to use this new version.
1.5 (May 18, 2013):
Added the DevicePath property to HidDevice.
This is useful for differentiating devices with the same VID, PID, etc.
1.4.0.1 (April 21, 2013):
Added missing XML documentation file to the archive.
1.4 (April 20, 2013):
Documented the most important classes.
Fixed a problem with output reports on 64-bit Windows.
Fixed a timeout bug on Windows.
Parallelized device enumeration.
Reordered platform detection to prevent binary planting on Windows.
1.3 (February 23, 2013):
Fixed Linux libudev reference to not require developer package symlinks.
1.2 (October 16, 2012):
Fixed MacOS support.
1.1 (July 28, 2012):
Added experimental MacOS and Linux support.
Added experimental report descriptor parsing.
1.0 (August 28, 2010):
Initial release.