https://github.com/bepinex/bepinex.autoplugin
Source generator for quickly creating a BepInEx plugin scaffolding.
https://github.com/bepinex/bepinex.autoplugin
bepinex source-generator
Last synced: about 1 year ago
JSON representation
Source generator for quickly creating a BepInEx plugin scaffolding.
- Host: GitHub
- URL: https://github.com/bepinex/bepinex.autoplugin
- Owner: BepInEx
- License: lgpl-3.0
- Created: 2021-10-14T11:40:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T17:52:11.000Z (over 2 years ago)
- Last Synced: 2025-04-05T08:41:25.453Z (over 1 year ago)
- Topics: bepinex, source-generator
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BepInEx.AutoPlugin
[](https://github.com/BepInEx/BepInEx.AutoPlugin/actions)
[](https://nuget.bepinex.dev/packages/BepInEx.AutoPlugin)
Source generator that turns
```cs
[BepInAutoPlugin("com.example.ExamplePlugin")]
public partial class ExamplePlugin : BaseUnityPlugin
{
}
```
into
```cs
[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";
}
```