Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 802 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 802 Bytes

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";
}