Getting started

Starting to create moonlight plugins is very easy with our streamlined tool-chain & templates

Requirements

Before you can start developing moonlight plugins please make sure you fulfill the following requirements:

Installing template & toolchain

Add the nuget package source:

Because github doesn’t allow to download from their nuget package registry without authentication you need an access token for your account which has the permissions to read packages. After you acquired this token you can add the nuget source by running the following command in your terminal:

dotnet nuget add source --username Moonlight-Panel --password YOUR_ACCESS_TOKEN --store-password-in-clear-text --name github-moonlight "https://nuget.pkg.github.com/Moonlight-Panel/index.json"

Installing the plugin template:

To install the moonlight plugin template run the following command:

dotnet new install Moonlight.PluginTemplate

Confirming installation and creating your first plugin:

To confirm your installation, open your IDE and create a new project. The custom template we just installed should appear.
As the solution/project name type your plugin namespace/name. Please make sure you check the two check boxes as shown in the screenshot.