OpenMacroBoard / StreamDeckSharp

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

System.MissingMethodException: Method not found: 'Void SixLabors.ImageSharp.Formats.Jpeg.JpegEncoder.set_Quality(System.Nullable`1<Int32>)' #57

Closed temppase closed 3 months ago

temppase commented 5 months ago

I got this kind a error message when trying to initialize stream deck.

temppase commented 5 months ago

It was pointing on this line: streamDeck = StreamDeck.OpenDevice();

wischi-chr commented 5 months ago

Hi @temppase

It looks like you updated SixLabors.ImageSharp to version 3 but this major version step is not supported by StreamDeckSharp you should switch to v2.1.8

The reason is that StreamDeckSharp also supports the .NET Framework and the new v3 version for SixLabors.ImageSharp does not, so I still target the v2 variant of ImageSharp.

Maybe in the future I might drop the .net framework support, or only use image sharp v2 for .net framework and v3 for .net core which should simplify things, but for now the only option is ImageSharp v2

temppase commented 5 months ago

Ok thanks