OpenMacroBoard / StreamDeckSharp

A simple .NET wrapper for Stream Deck
MIT License
351 stars 47 forks source link

Could not load HidSharp... #43

Closed dxh-sc closed 2 years ago

dxh-sc commented 2 years ago

I have two project, one use the nuget package "StreamDeckSharp", another one use the nuget package "HidSharp". If the following hidsharp overwrites the previous HidSharp.dll, will see the error "could not load hidsharp...." for the StreamDeckSharp.

so i think there two hidsharp.dll have some conflicts.

so why not reference HidSharp nuget directly on this project(StreamDeckSharp)?

or i miss something?

I put down the source code, modify the reference, and then compile it, it works and i didn't see any mistakes either.

wischi-chr commented 2 years ago

Currently hidsharp is included in this repo because I strongly named it (because StreamDeckSharp is also strongly named) and the hidsharp nuget package isn't.

This will probably be changed in the upcoming StreamDeckSharp release (because I'm probably dropping the strong name signature) and hidsharp will be referenced as a regular nuget package.

dxh-sc commented 2 years ago

thanks!!!

it is very nice to have it.

wischi-chr commented 2 years ago

@dxh-sc If you still have this issues you can try out the new v4.0.0-preview it no longer uses strongly named assemblies and thus doesn't depend on a bundled hidsharp anymore.