You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devilExE edited this page Feb 5, 2024
·
1 revision
Generally speaking, simple mods don't need Harmony, that's why it's not included by default in the MDK.
If you want to use Harmony (which is also used by Loadson internally), follow this steps:
Install Lib.Harmony version 2.2.2 via NuGet
Open Project (not Solution) properties, and go to Build Events
In the Post-Build commands insert del 0Harmony* below the other del lines.
It should look like:
echo Cleaning bin folder..
del Assembly-CSharp.dll
del LoadsonAPI.*
del Unity*
del 0Harmony*
"$(SolutionDir)ModBuilder.exe"
In your OnEnable() method add the following lines: