Harmony icon indicating copy to clipboard operation
Harmony copied to clipboard

A library for patching, replacing and decorating .NET and Mono methods during runtime

Results 24 Harmony issues
Sort by recently updated
recently updated
newest added

When I add "defineConstraints": [ "UNITY_INCLUDE_TESTS" ], on a unity playmode test assembly, harmony is no longer included. This is annoying because when this is removed unity tries to include...

**Describe the bug** When using AccessTools.MakeDeepCopy on a class which contains a constant field, Harmony will cause a `System.FieldAccessException: Cannot set a constant field`. **To Reproduce** 1. Create an executable...

An error occurs when attempting to add the patch: `Unhandled exception. HarmonyLib.HarmonyException: Patching exception in method System.Void Npgsql.NpgsqlCommand::TraceCommandStart(Npgsql.Internal.NpgsqlConnector connector) Unhandled exception. HarmonyLib.HarmonyException: Patching exception in method System.Void Npgsql.NpgsqlCommand::TraceCommandStart(Npgsql.Internal.NpgsqlConnector connector) --->...

Allows patch attributes like `[HarmonyPatch(typeof(TargetType), "", MethodType.Getter)]` on a method, or ```cs [HarmonyPatch(typeof(TargetType))] static class PatchClass { [HarmonyPatch("", MethodType.Getter)] static void Postfix() { } } ``` to target an Indexer...