The official SDK for creating Open Commissioning Assistant plugins.
- Create a
Class Libraryproject with target framework.NET 10 - Add the
OC.Assistant.Sdkpackage via nuget - Create a public class and inherit the
OC.Assistant.Sdk.PluginBase - Create a xml file with file extension
*.pluginand let it copy to the output directory:
<?xml version="1.0" encoding="utf-8"?>
<Plugin>
<!-- The name of the compiled dll file. -->
<AssemblyFile>YourAssemblyName.dll</AssemblyFile>
<!-- Optional directory to search dlls at runtime. Can be added multiple times. -->
<AdditionalDirectory>path\to\directory1</AdditionalDirectory>
<AdditionalDirectory>path\to\directory2</AdditionalDirectory>
<!-- Optional url and type of the plugin repository. -->
<RepositoryUrl>https://github.com/YourProfile/YourPluginRepo</RepositoryUrl>
<RepositoryType>github</RepositoryType>
</Plugin>To run your plugin, place your *.dll and *.plugin files in the Plugins folder of the OC.Assistant.exe
Further details how to use Attributes, Properties and Methods can be found within the SDK.
You can also learn how to build your own plugin by reviewing existing ones on our Open Commissioning GitHub page.
Also check out our YouTube channel for upcoming tutorials.