Solaestas.tModLoader.ModBuilder 1.3.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.3.0
NuGet\Install-Package Solaestas.tModLoader.ModBuilder -Version 1.3.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.3.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.3.0
#r "nuget: Solaestas.tModLoader.ModBuilder, 1.3.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.3.0

// Install Solaestas.tModLoader.ModBuilder as a Cake Tool
#tool nuget:?package=Solaestas.tModLoader.ModBuilder&version=1.3.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.5.8 67 5/10/2024
1.5.7 62 5/10/2024
1.5.6 94 5/6/2024
1.5.5 84 5/5/2024
1.5.4 85 5/4/2024
1.5.3 46 5/3/2024
1.5.2 46 5/2/2024
1.5.1 65 5/2/2024
1.5.0 87 4/19/2024
1.4.1 453 10/24/2023
1.4.0 271 10/23/2023
1.3.0 269 8/1/2023
1.2.0 179 7/26/2023
1.1.2 287 7/14/2023
1.1.1.1 174 7/13/2023
1.1.0 186 7/11/2023

Here we go!