5. Automating (in VisualStudio) - robot9706/FSSE GitHub Wiki
Automating patching and mod copying
This is an optional tutorial step and it can be done in many different ways. The purpose of this step is to make mod development faster by making VisualStudio to copy and patch files.
In order to do this open the properties of your mod project and goto "Build Events", the following commands can be added to the "Post-build event command line":
"[Path to FSModToolCMD.exe]" patch "[Path to a preset]"
copy "$(TargetPath)" "[Fallout shelter installation folder]\FalloutShelter_Data\Mods\$(TargetFileName)"
An example:
"C:\Modding\FSModToolCMD.exe" patch "C:\Modding\mymodpreset.set"
copy "$(TargetPath)" "C:\Bethesda.net Launcher\games\FalloutShelter\FalloutShelter_Data\Mods\$(TargetFileName)"
The first command will use a preset from the FSModTool.exe which has everything setup for modding. This way if you add a new hook to your mod it will be patched automatically into the game assembly. More info of the FSModToolCMD parameters can be found here.
Note: In this case it's suggested to setup the preset to use the same input and output files. Set them as the "Assembly-CSharp.dll" in the "Managed" folder, this way only new patches will be added and the assembly won't be repatched every build.
The second command will copy the built mod to the "Mods" folder.