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.
See the version list below for details.
Install-Package Usb.Events -Version 1.0.1
dotnet add package Usb.Events --version 1.0.1
<PackageReference Include="Usb.Events" Version="1.0.1" />
paket add Usb.Events --version 1.0.1
#r "nuget: Usb.Events, 1.0.1"
// Install Usb.Events as a Cake Addin #addin nuget:?package=Usb.Events&version=1.0.1 // Install Usb.Events as a Cake Tool #tool nuget:?package=Usb.Events&version=1.0.1
- System.Management (>= 4.7.0)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.