Skip to content

Commit

Permalink
Version 10.1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Urban committed May 31, 2023
1 parent b643d3a commit 5cc4a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Subscribe to the Inserted and Removed events to be notified when a USB drive is
1. Include NuGet package from https://www.nuget.org/packages/Usb.Events

<ItemGroup>
<PackageReference Include="Usb.Events" Version="10.1.0.1" />
<PackageReference Include="Usb.Events" Version="10.1.1.0" />
</ItemGroup>
2. Subscribe to events:
Expand Down Expand Up @@ -80,10 +80,10 @@ Using `Win32_USBControllerDevice` is usually the better option.
<Target Name="BuildNonWindowsNative" Condition="'$(OS)' != 'Windows_NT'" BeforeTargets="Build">
<Exec Condition="'$(IsMacOS)' == 'true'"
WorkingDirectory=".\"
Command="gcc -shared -framework CoreFoundation -framework DiskArbitration -framework IOKit UsbEventWatcher.Mac.c -o UsbEventWatcher.Mac.dylib" />
Command="gcc -shared ./Mac/UsbEventWatcher.Mac.c -o UsbEventWatcher.Mac.dylib -framework CoreFoundation -framework DiskArbitration -framework IOKit" />
<Exec Condition="'$(IsMacOS)' != 'true'"
WorkingDirectory=".\"
Command="gcc -shared UsbEventWatcher.Linux.c -o UsbEventWatcher.Linux.so -ludev -fPIC" />
Command="gcc -shared ./Linux/UsbEventWatcher.Linux.c -o UsbEventWatcher.Linux.so -ludev -fPIC" />
</Target>
```

Expand All @@ -96,6 +96,9 @@ Using `Win32_USBControllerDevice` is usually the better option.

## Version history:

- 10.1.1.0:
- Fixed `Dispose()` to exit native monitor loop in Linux
- Added `bool usePnPEntity` to use `Win32_PnPEntity` in Windows
- 10.1.0.1:
- Added `bool addAlreadyPresentDevicesToList` in Windows
- 10.1.0.0:
Expand Down
4 changes: 2 additions & 2 deletions Usb.Events/Usb.Events.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<PropertyGroup>
<Product>Usb.Events</Product>
<PackageId>Usb.Events</PackageId>
<PackageVersion>10.1.0.1</PackageVersion>
<Version>10.1.0.1</Version>
<PackageVersion>10.1.1.0</PackageVersion>
<Version>10.1.1.0</Version>
<Authors>Jinjinov</Authors>
<Description>Subscribe to events to be notified when a USB drive is mounted in or ejected, or when a USB device is added or removed. Usb.Events is a .NET Standard 2.0 library and uses WMI on Windows, libudev on Linux and IOKit on macOS.</Description>
<Copyright>Copyright (c) Jinjinov 2022</Copyright>
Expand Down

0 comments on commit 5cc4a7e

Please sign in to comment.