I am trying to setup the Logitech LED SDK in order to create a script that allows to change backlight of specific keys. However when I follow the instructions given in the documentation I get the following ERROR: error CS0103: The name 'LogitechGSDK' does not exist in the current contex I have created a short video that illustrates how I tried to set it up
If anyone knows what I'm doing wrong or can explain to me how I can setup SDK for a C# project it would be very much appreciated.
I have tried following the documentation given with the download I have linked to and looked for similar posts but I've only found one for Java
I am trying to run the following code which was given as an example in the documentation found here: logitechSDK
location: LED_SDK_9.00\LED\Samples\Logi_SetTargetZone_Sample_CS\Logi_SetTargetZone_Sample_CS
CodePudding user response:
This error means that LogitechGSDK
is not known in the context. You have probably not included correct references to the project or not included the LogitechGSDK.cs
in your project.
If SDK contains some examples, start with them. Make sure that you can build and run simple example, then play with it and make your own.
EDIT:
You need to add namespace reference:
using LedCSharp;
add it on top of the Program.cs
file.
The LogitechLedEnginesWrapper.dll
(x86 or x64) should be coppied to the output directory (where the .exe
file is created), not the project directory.
Check terminal commands:
dotnet build
and
dotnet run
Good luck!