Skip to content

Helper build target that generates a MyPluginInfo class based on assembly metadata.

License

Notifications You must be signed in to change notification settings

SpaceWarpDev/SpaceWarp.PluginInfoProps

Repository files navigation

SpaceWarp PluginInfo generator

Generates MyPluginInfo.cs based on MSBuild properties.

This is a version of BepInEx.PluginInfoProps specifically modified for use with SpaceWarp.Template, and all credit goes to the original authors.

Basic usage

Define the following properties in your project:

<AssemblyName>Example.Plugin</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>

this will generate the following class:

using System;

internal static class MyPluginInfo
{
    /// <summary>
    /// The GUID of the plugin.
    /// </summary>
    public const string PLUGIN_GUID = "Example.Plugin";
    /// <summary>
    /// The name of the plugin.
    /// </summary>
    public const string PLUGIN_NAME = "My first plugin";
    /// <summary>
    /// The version of the plugin.
    /// </summary>
    public const string PLUGIN_VERSION = "1.0.0";
}

About

Helper build target that generates a MyPluginInfo class based on assembly metadata.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published