Getting Started
The Logi Actions SDK includes a command-line tool (LogiPluginTool
) that allows developers to create plugin projects, package plugins, and verify them.
Prerequisites
- Basic knowledge of .NET and C# development.
- A .NET IDE (e.g., Visual Studio Code, Visual Studio 2022 Community Edition or higher, or JetBrains Rider).
- A device for testing the plugin (e.g., Logitech MX Creative Console, Loupedeck CT, Loupedeck Live, Loupedeck Live S, or Razer Stream Controller).
Installation and First Build
-
Ensure you have the latest Logitech Options+ or Loupedeck software installed:
- Logitech Options+: https://www.logitech.com/software/options.html
- Loupedeck Software: https://loupedeck.com/downloads/
-
Install the latest .NET 8 SDK:
- You can download it from https://dotnet.microsoft.com/download/dotnet/8.0
-
Install the LogiPluginTool as a .NET tool. Open a terminal and run the following command:
-
Generate a template plugin project using the LogiPluginTool:
where "Example" is the name of the plugin. The command creates a folder named
ExamplePlugin
in the current directory. -
Navigate to the generated folder and build the template plugin solution:
-
Confirm that the build produces a
.link
file in the Logi Plugin Service's Plugins directory:Note
The
.link
file simply tells the Logi Plugin Service where to load your plugin from. If the installed plugin folder is present, the plugin from .link address is loaded first. -
Launch Logitech Options+ or Loupedeck software and wait for the configuration UI to appear.
In the Logitech Options+ configuration view, navigate to 'All Actions' and verify that 'ExamplePlugin' appears under the 'Installed Plugins' section. If the plugin is not shown on the list, go the Options+ settings and select 'Restart Logi Plugin Service'.
In Loupedeck Software, Unhide the "Example" plugin on the "Hide and show plugins" tab of the Action panel. The plugin should be now shown in the UI.
Hot Reloading
You can use the .NET Hot Reload feature to automatically rebuild the plugin project and reload the plugin in the host software whenever a source code file is saved.
To start hot reloading, first navigate to the plugin project's src
directory, then run the watch command:
More information about .NET Hot Reload: https://devblogs.microsoft.com/dotnet/introducing-net-hot-reload/