C#C
C#4y ago
mini

Harmony throws unknown location exception on Patch

I am using Harmony to add a parameter to various log calls of the assembly but whenever I try to Patch it by transpiling it, I get an error:
IL Compile Error (unknown location)
   bei HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
   bei HarmonyLib.PatchProcessor.Patch()
   bei HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer, HarmonyMethod ilmanipulator)

Does anyone have an idea why?
Was this page helpful?