Solaestas.tModLoader.ModBuilder
1.4.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Solaestas.tModLoader.ModBuilder --version 1.4.1
NuGet\Install-Package Solaestas.tModLoader.ModBuilder -Version 1.4.1
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.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Solaestas.tModLoader.ModBuilder --version 1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Solaestas.tModLoader.ModBuilder, 1.4.1"
#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.4.1 // Install Solaestas.tModLoader.ModBuilder as a Cake Tool #tool nuget:?package=Solaestas.tModLoader.ModBuilder&version=1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Publicize FNA and tModLoader assembly using BepInEx.AssemblyPublicizer.MSBuild
- 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 TestMod.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-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.
-
.NETStandard 2.0
- BepInEx.AssemblyPublicizer.MSBuild (>= 0.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Here we go!