If you have any problems getting the samples to build or run, here are some general tips.
I recommend trying this first
- Update Visual Studio 2019 to the latest version
- Use the Visual Studio installer to install all Xamarin components
- Make sure Visual Studio is closed
- Pull latest on
develop
(outside of Visual Studio - Leave it closed until the last step) - Clear NuGet cache
- Make sure you have no uncommitted changes.
- Do a Git clean on the repo. Make sure you remove all untracked files.
git clean -x -f -d
- Open Visual Studio and open the appropriate solution in the src folder.
- Make sure you are in Debug build mode.
- Restore NuGet packages. Make sure that all packages are restored before trying to build.
- Try building in Debug again
- Repeat from step 1 with develop branch. Note: from time to time, the develop branch will be slightly out from the master branch. It's worth trying both.
- If you still get an error, please document it up with as much detail, and put a question on Stack Overflow. Tag it with "usb, hid", mention "Device.Net" and any tags for your OS, etc.
- If you do put a question on Stack Overflow, please reference it in an issue on this repo.