Solaestas.tModLoader.ModBuilder 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Solaestas.tModLoader.ModBuilder --version 1.1.0                
NuGet\Install-Package Solaestas.tModLoader.ModBuilder -Version 1.1.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="Solaestas.tModLoader.ModBuilder" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Solaestas.tModLoader.ModBuilder --version 1.1.0                
#r "nuget: Solaestas.tModLoader.ModBuilder, 1.1.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 Solaestas.tModLoader.ModBuilder as a Cake Addin
#addin nuget:?package=Solaestas.tModLoader.ModBuilder&version=1.1.0

// Install Solaestas.tModLoader.ModBuilder as a Cake Tool
#tool nuget:?package=Solaestas.tModLoader.ModBuilder&version=1.1.0                

Solaestas' ModBuilder

This is a NuGet package for tModLoader mod makers which modifies and automates mod building procedure.

document is not finished yet

Feature

  • Include referenced dll automatically
  • Generate cache file for png
  • Compile and Include fx files automatically
  • Generate asset path automatically (Optional)
  • Disable other mods automatically in building (Optional)

Supported Config

The following configs are all MSBuild Properties, which can be set in csproj file or Directory.Build.props file.

This is an example of MyMod.csproj.

<Project>
	<Import Project="..\tModLoader.targets"/>

	<PropertyGroup>
    <AssemblyName>TestMod</AssemblyName>
    <TargetFramework>net6.0</TargetFramework>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <LangVersion>latest</LangVersion>
  </PropertyGroup>

  <PropertyGroup>
    
    <Solaestas-UsePublicizer>false</Solaestas-UsePublicizer>
    
    <Solaestas-UseMinimalMod>true</Solaestas-UseMinimalMod>
    
    <Solaestas-BuildIgnore>false</Solaestas-BuildIgnore>
  </PropertyGroup>

  <ItemGroup>
    
    <ResourceFile Include="**/*.bmp" />
  </ItemGroup>


  <ItemGroup>
    <PackageReference Include="tModLoader.CodeAssist" Version="0.1.*" />
  </ItemGroup>
 </Project>
Config Name Description Default Value Optional Values
Solaestas-UseAssetPath Whether to generate asset path true true or false
Solaestas-UsePublicizer Whether to reference BepInEx.AssemblyPublicizer.MSBuild true true or false
Solaestas-UseMinimalMod Whether to disable other mods automatically in building false true or false
Solaestas-NotMod Indicate that this project is not a mod. false true or false
Solaestas-WhitelistMod white list mod which avoid to be disable via UseMinimalMod herosmod;cheatsheet;dragonlen [Mod Name]
Solaestas-BuildIgnore true: read ignore files from build.txt<br>false: only read resource file defined in msbuild true true or false
Solaestas-AssetPrefix Prefix of asset path string.Empty [string]
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.6.1 122 6/7/2024
1.5.11 165 5/27/2024
1.5.10 104 5/26/2024
1.4.1 547 10/24/2023
1.4.0 320 10/23/2023
1.3.0 311 8/1/2023
1.2.0 205 7/26/2023
1.1.2 320 7/14/2023
1.1.1.1 199 7/13/2023
1.1.0 211 7/11/2023

Here we go!