Subscribe to the Inserted and Removed events to be notified when a USB drive is plugged in or unplugged, or when a USB device is connected or disconnected. Usb.Events is a .NET Standard 2.0 library and uses WMI on Windows, libudev on Linux and IOKit on macOS.

Install-Package Usb.Events -Version
dotnet add package Usb.Events --version
<PackageReference Include="Usb.Events" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Usb.Events --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 0 7/10/2020
1.0.1 280 7/4/2020 55 7/7/2020
1.0.0 110 4/28/2020