Automatic deployment
The ExampleMod.csproj includes MSBuild targets that automatically deploy the mod on every build (controlled by the DeployToModsFolder property in the csproj, true by default):
- Copies
manifest.json,config.json,readme.txt, the compiled DLL, and asset bundles to%APPDATA%/Captain of Industry/Mods/<ModName>/. - Creates a distributable zip file in the mods folder. The zip contains the mod directory as its root, so players can extract it directly into the
Modsfolder. - Debug builds also copy PDB files for debugging.
The deployment target path is controlled by the COI_MODS variable in the csproj, which defaults to %APPDATA%/Captain of Industry/Mods.
Version auto-generation
The assembly version is automatically generated from the version field in manifest.json.
You do not need to set version attributes manually.
The version 1.2.3a is normalized to assembly version 1.2.3.1 (the letter suffix is converted to a numeric revision: a=1, b=2, etc.).