BibitesMods.ModsInfoProps 1.0.0

dotnet add package BibitesMods.ModsInfoProps --version 1.0.0                
NuGet\Install-Package BibitesMods.ModsInfoProps -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BibitesMods.ModsInfoProps" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BibitesMods.ModsInfoProps --version 1.0.0                
#r "nuget: BibitesMods.ModsInfoProps, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BibitesMods.ModsInfoProps as a Cake Addin
#addin nuget:?package=BibitesMods.ModsInfoProps&version=1.0.0

// Install BibitesMods.ModsInfoProps as a Cake Tool
#tool nuget:?package=BibitesMods.ModsInfoProps&version=1.0.0                

BibitesModsLoader PluginInfo generator

Generates MyPluginInfo.cs based on csproj tags.

Basic usage

Define the following properties in your csproj:

<AssemblyName>Example.Plugin</AssemblyName>
<Product>My first plugin</Product>
<Authors>Me</Authors>
<Version>1.0.0</Version>
<Description>My first plugin ! Use to ...</Description>
<ModNicesse>10</ModNicesse> 

this will generate the following class:

namespace MyRootNamespace
{
	public static class ModInfo
	{
		public const string MOD_GUID = "Example.Plugin";
		public const string MOD_NAME = "My first plugin";
		public const string MOD_AUTHORS = "Me";
		public const string MOD_VERSION = "1.0.0";
		public const string MOD_DESCRIPTION = "My first plugin ! Use to ...";
		public const byte MOD_NICESSE = 10;
	}
}		

Value more in deep

The properties Assemblyname, Product, Authors, Version and Description are used to define ModGuid, ModName, ModAuthors, ModVersion, and ModDescription. If you prefer not use the .NET property values to define the modinfo constant, you can instead utilize the last described property. For example, you can follow a similar approach as demonstrated with the ModNicesse property in the provided example.

<AssemblyName>Example.Plugin</AssemblyName>
<Product>My first plugin</Product>
<Authors>Me</Authors>
<Version>1.0.0</Version>
<Description>My first plugin ! Use to ...</Description> <--! This one is use to define the out put discription of the dll. -->
<ModDescription>An other desciption</Description> <--! This one is use for the const  value. -->
<ModNicesse>10</ModNicesse> 

Credit

This project is an edit of : Original.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.7.2

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 213 3/3/2024