Skip to content

Source generator for quickly creating a BepInEx plugin scaffolding.

License

Notifications You must be signed in to change notification settings

BepInEx/BepInEx.AutoPlugin

Repository files navigation

BepInEx.AutoPlugin

CI NuGet

Source generator that turns

[BepInAutoPlugin("com.example.ExamplePlugin")]
public partial class ExamplePlugin : BaseUnityPlugin
{
}

into

[BepInEx.BepInPlugin(ExamplePlugin.Id, "ExamplePlugin", "0.1.0")]
public class ExamplePlugin : BaseUnityPlugin
{
    public const string Id = "com.example.ExamplePlugin";
    public static string Name => "ExamplePlugin";
    public static string Version => "0.1.0";
}

About

Source generator for quickly creating a BepInEx plugin scaffolding.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages