MelbourneDeveloper / Device.Net

A C# cross platform connected device framework
MIT License
620 stars 119 forks source link

'FilterDeviceDefinition' does not contain a definition for 'CreateWindowsUsbDeviceFactory' #243

Closed libbierose86 closed 2 years ago

libbierose86 commented 2 years ago

Describe the issue I have tried used the example but I am getting the below error when I try to register the USB factory.

CS1061 'FilterDeviceDefinition' does not contain a definition for 'CreateWindowsUsbDeviceFactory' and no accessible extension method 'CreateWindowsUsbDeviceFactory' accepting a first argument of type 'FilterDeviceDefinition' could be found (are you missing a using directive or an assembly reference?)

Also if I try adding the 'using Usb.Net.Windows;' I also get the below error CS0246 The type or namespace name 'Usb' could not be found (are you missing a using directive or an assembly reference?)

I am trying to do this in the MAUI, but a couple of weeks ago I managed to get it working fairly easily but I can't for the life of me remember how and unfortunately I have lost the code, due to computer problems and not pushing to me github.

Screenshots image image

libbierose86 commented 2 years ago

Closing issue I didn't have Usb.Net installed in the project