OpenMacroBoard / StreamDeckSharp

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

Reference Issues, nuget ver 2.2 #28

Closed XySoftNeil closed 3 years ago

XySoftNeil commented 3 years ago

I opened a .net 4.8 project, then added the nuget package and the code

     using (var deck = StreamDeck.OpenDevice())
     {
        deck.SetBrightness(100);
     }

resulted in the following errors. I did notice that the dependent nuget packages did not load, and tried again after I loaded them as well. Same result. I hope I can use this package, it is exactly what I was looking for.

error CS0012: The type 'IMacroBoard' is defined in an assembly that is not referenced. You must add a reference to assembly 'OpenMacroBoard.SDK, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'. error CS0012: The type 'IMacroBoard' is defined in an assembly that is not referenced. You must add a reference to assembly 'OpenMacroBoard.SDK, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'. error CS1061: 'IStreamDeckBoard' does not contain a definition for 'SetBrightness' and no accessible extension method 'SetBrightness' accepting a first argument of type 'IStreamDeckBoard' could be found (are you missing a using directive or an assembly reference?)

XySoftNeil commented 3 years ago

Closing, It appears removing and re installing the nuget fixed this.