-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a Plugin
Creating a DropMeter Plugin is quite easy! Follow the steps below to begin your awesome new plugin: Notice: This Guide assumes familiarity with basic C# and NuGet Package Installation.
Requirements:
- .NET SDK 5 (Download from Microsoft)
- Any .NET IDE/Editor of your choice
-
Create a .NET 5 Class Library project. That can be done through you IDE or via the
dotnet
command with:dotnet new classlib
inside your project folder. -
Install the DropMeter Plugin SDK to your project. That can be done through you IDE by searching for the NuGet package DropMeter.PluginInterface or via the
dotnet
command with:dotnet add package DropMeter.PluginInterface
inside your project folder. -
Create a new Class that Extends
DropMeter.PluginInterface.DMPlugin
Your IDE should automatically implement all necessary methods and properties. -
Unleash your creativity! If you'd like an example, check out the WebNowPlaying Plugin
SDK Version Range | Manifest Documentation | Final File Extension |
---|---|---|
1.0.0 -> Present | The Universal Manifest | .dmx |
-
Write a JSON Manifest File. Documentation is available on the table above. Make sure your manifest is set to be copied to your build output.
- Don't forget to run a build after doing it, to copy the file.
-
Zip your build output. NOTE: make sure your files are at the root of the zip file. The final structure should look like:
- MyPlugin.zip/manifest.json
- MyPlugin.zip/myplugin.dll (Build Output)
- MyPlugin.zip/myplugin.deps.json (Build Output)
- MyPlugin.zip/{AdditionalDlls}.dll (Optional, consider this to be the dependencies your plugin may need)
-
Rename your ZIP file to have the Final File Extension, shown in the table above.