Comments (18)
Can you explain a little bit more? Please tell me how you debug your code, and if you use Harmony in the same project or on a different DLL so I can reproduce your case. I just need more details.
from harmony.
here is sample project. i use rider open it and start with debug. and then, _harmony.Patch(action.Method, postfix: new HarmonyMethod(Hook));
throw that exception
from harmony.
if you just run ConsoleApp1, it work well.
from harmony.
I can confirm it with Visual Studio, Harmony 2.3 and net8 locally, ping @nike4613
Easy to reproduce with the provided project above. I even modified the source to double check for any schenaningans but it does give me a NRE in MonoMod's _Generate()
using HarmonyLib;
namespace ClassLibrary1;
public class Class1
{
public static void A()
{
Console.WriteLine("Class1 A");
}
}
public class Patch
{
private static Harmony _harmony = new Harmony("Patch");
public static void Do()
{
//var action = Class1.A;
//_harmony.Patch(action.Method, postfix: new HarmonyMethod(Hook));
var mA = SymbolExtensions.GetMethodInfo(() => Class1.A());
var mHook = SymbolExtensions.GetMethodInfo(() => Patch.Hook());
_harmony.Patch(mA, postfix: new HarmonyMethod(mHook));
}
public static void Hook()
{
Console.WriteLine("Hook");
}
}
MonoMod.Common.dll!MonoMod.Utils.DMDEmitDynamicMethodGenerator._Generate(MonoMod.Utils.DynamicMethodDefinition dmd, object context) Unknown
MonoMod.Common.dll!MonoMod.Utils.DMDGenerator<MonoMod.Utils.DMDEmitDynamicMethodGenerator>.Generate(MonoMod.Utils.DynamicMethodDefinition dmd, object context) Unknown
MonoMod.Common.dll!MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.DetourRuntimeILPlatform() Unknown
MonoMod.Common.dll!MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETPlatform.DetourRuntimeNETPlatform() Unknown
MonoMod.Common.dll!MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETCorePlatform.DetourRuntimeNETCorePlatform() Unknown
MonoMod.Common.dll!MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETCorePlatform.Create() Unknown
MonoMod.Common.dll!MonoMod.RuntimeDetour.DetourHelper.Runtime.get() Unknown
0Harmony.dll!HarmonyLib.HarmonySharedState.HarmonySharedState() Line 58 C#
[Native to Managed Transition]
[Managed to Native Transition]
0Harmony.dll!HarmonyLib.HarmonySharedState.GetPatchInfo(System.Reflection.MethodBase method) Line 112 C#
0Harmony.dll!HarmonyLib.PatchProcessor.Patch() Line 101 C#
0Harmony.dll!HarmonyLib.Harmony.Patch(System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) Line 116 C#
ClassLibrary1.dll!ClassLibrary1.Patch.Do() Line 24 C#
ConsoleApp1.dll!Program.<Main>$(string[] args) Line 6 C#
from harmony.
That looks like a legacy stacktrace, and that supports neither .NET 7 nor .NET 8.
MonoMod.Common
from harmony.
Here is a more simpler example:
using HarmonyLib;
namespace TestingNet8
{
internal class Program
{
static void Main(string[] args)
{
var harmony = new Harmony("test");
var original = SymbolExtensions.GetMethodInfo(() => new Test().HelloWorld());
var postfix = SymbolExtensions.GetMethodInfo(() => Patch.Postfix());
Console.WriteLine("Start");
harmony.Patch(original, postfix: new HarmonyMethod(postfix));
Console.WriteLine("Stop");
}
}
public class Test
{
public void HelloWorld()
{
Console.WriteLine("Hello, World!");
}
}
public class Patch
{
public static void Postfix()
{
Console.WriteLine("Patched!");
}
}
}
In a net7 project it runs Debug+Release. In the same but switched to net8 it has an exception (either Debug or Release)
from harmony.
from harmony.
That looks like a legacy stacktrace, and that supports neither .NET 7 nor .NET 8.
MonoMod.Common
So how did that come into play with a reference to the nuget package Lib.Harmony 2.3? Lets continue this on the discord.
from harmony.
Ok, after investigating this I found that my Visual Studio had somehow the wrong (old?) version of Harmony 2.3 in the nuget cache. Not really sure why but after removing all cached versions in C:\Users\Brrainz\.nuget\packages\lib.harmony\...
and rebuilding your project, it works as expected. You can verify this before and after cleaning that your dependencies *should not mention MonoMod.Common
but only this:
After that, your project runs ands debugs fine.
from harmony.
I tested in vs2022, it work. but in rider was same issue.
I found that MonoMod.Core was loaded in debugger mode.
here is debug output
Loaded application domain 'DefaultDomain (id 1)'
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Private.CoreLib.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Private.CoreLib.dll in application domain 1:DefaultDomain
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Private.CoreLib.dll was not found or failed to read
Started Thread 33880
Loaded Assembly 'C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll'
Loading module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll in application domain 1:clrhost
Symbols for module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll loaded
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Console.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Console.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Console.dll was not found or failed to read
Loaded Assembly 'C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ClassLibrary1.dll'
Loading module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ClassLibrary1.dll in application domain 1:clrhost
Symbols for module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ClassLibrary1.dll loaded
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.Encoding.Extensions.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.Encoding.Extensions.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.Encoding.Extensions.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.InteropServices.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.InteropServices.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.InteropServices.dll was not found or failed to read
Loaded Assembly 'C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\0Harmony.dll'
Loading module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\0Harmony.dll in application domain 1:clrhost
Pdb file for assembly C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\0Harmony.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Concurrent.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Concurrent.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Concurrent.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Memory.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Memory.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Memory.dll was not found or failed to read
[2]MonoMod.Core: [MonoMod.Core] Info: Version 1.1.0
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\netstandard.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\netstandard.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\netstandard.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.ILGeneration.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.ILGeneration.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.ILGeneration.dll was not found or failed to read
Loaded Assembly '<unknown>'
Loading module HarmonySharedState in application domain 1:clrhost
Pdb file for assembly was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\mscorlib.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\mscorlib.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\mscorlib.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.Lightweight.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.Lightweight.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.Lightweight.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Primitives.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Primitives.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Primitives.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.Thread.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.Thread.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.Thread.dll was not found or failed to read
[1]MonoMod.Utils: [MonoMod.Utils] Trace: IsMono: False, IsCoreBcl: True
[1]MonoMod.Utils: [MonoMod.Utils] Trace: Returned system version: 8.0.0
[1]MonoMod.Utils: [MonoMod.Utils] Trace: FrameworkDescription: .NET 8.0.0
[2]MonoMod.Utils: [MonoMod.Utils] Info: Detected runtime: CoreCLR 8.0.0
Loaded Assembly '<unknown>'
Loading module MonoMod.Utils.Cil.ILGeneratorProxy in application domain 1:clrhost
Pdb file for assembly was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.Expressions.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.Expressions.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.Expressions.dll was not found or failed to read
[1]MonoMod.Utils: [MonoMod.Utils] Trace: new DynamicMethod: System.Void ClassLibrary1.Class1.A_Patch1()
[1]MonoMod.Utils: [MonoMod.Utils] Trace: mdef: System.Void ClassLibrary1.Class1.A_Patch1()
[2]MonoMod.Utils: [MonoMod.Utils] Info: Platform info: Windows x86_64
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.Process.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.Process.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.Process.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.ComponentModel.Primitives.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.ComponentModel.Primitives.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.ComponentModel.Primitives.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.NonGeneric.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.NonGeneric.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.NonGeneric.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\Microsoft.Win32.Primitives.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\Microsoft.Win32.Primitives.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\Microsoft.Win32.Primitives.dll was not found or failed to read
[1]MonoMod.Core: [MonoMod.Core] Trace: Got jit path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\clrjit.dll
Loaded Assembly 'C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\System.Text.Json.dll'
Loading module C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\System.Text.Json.dll in application domain 1:clrhost
Pdb file for assembly C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\System.Text.Json.dll was not found or failed to read
[1]MonoMod.Utils: [MonoMod.Utils] Trace: new DynamicMethod: System.Object MethodHandle_GetLoaderAllocator(System.IntPtr)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: mdef: System.Object MethodHandle_GetLoaderAllocator(System.IntPtr)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: new DynamicMethod: System.Type GetDeclaringTypeOfMethodHandle(System.IntPtr)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: mdef: System.Type GetDeclaringTypeOfMethodHandle(System.IntPtr)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: new DynamicMethod: System.RuntimeMethodInfoStub new RuntimeMethodInfoStub(System.IntPtr,System.Object)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: mdef: System.RuntimeMethodInfoStub new RuntimeMethodInfoStub(System.IntPtr,System.Object)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: new DynamicMethod: System.RuntimeMethodHandle new RuntimeMethodHandle(System.Object)
[1]MonoMod.Utils: [MonoMod.Utils] Trace: mdef: System.RuntimeMethodHandle new RuntimeMethodHandle(System.Object)
[1]MonoMod.Core: [MonoMod.Core] Trace: Allocated ICorJitInfo wrapper vtable at 0x000001f42bdb8a30
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.RegularExpressions.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.RegularExpressions.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.RegularExpressions.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.StackTrace.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.StackTrace.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.StackTrace.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Metadata.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Metadata.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Metadata.dll was not found or failed to read
Loaded Assembly 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Immutable.dll'
Loading module C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Immutable.dll in application domain 1:clrhost
Pdb file for assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Immutable.dll was not found or failed to read
load module:
-- | -- | -- | -- | -- | -- | -- |
---|---|---|---|---|---|---|
System.Private.CoreLib | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Private.CoreLib.dll | [Symbols are not loaded yet] | Enabled | 1 | 8.0.0.0 | clrhost |
ConsoleApp1 | C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll | [C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.pdb] | Enabled | 2 | 1.0.0.0 | clrhost |
System.Runtime | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.dll | [Symbols are not loaded yet] | Enabled | 3 | 8.0.0.0 | clrhost |
System.Console | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Console.dll | [Symbols are not loaded yet] | Enabled | 4 | 8.0.0.0 | clrhost |
ClassLibrary1 | C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ClassLibrary1.dll | [C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ClassLibrary1.pdb] | Enabled | 5 | 1.0.0.0 | clrhost |
System.Threading | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.dll | [Symbols are not loaded yet] | Enabled | 6 | 8.0.0.0 | clrhost |
System.Text.Encoding.Extensions | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.Encoding.Extensions.dll | [Symbols are not loaded yet] | Enabled | 7 | 8.0.0.0 | clrhost |
System.Runtime.InteropServices | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Runtime.InteropServices.dll | [Symbols are not loaded yet] | Enabled | 8 | 8.0.0.0 | clrhost |
0Harmony | C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\0Harmony.dll | [Decompiled Symbols] | Enabled | 9 | 2.3.0.0 | clrhost |
System.Collections.Concurrent | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Concurrent.dll | [Symbols are not loaded yet] | Enabled | 10 | 8.0.0.0 | clrhost |
System.Memory | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Memory.dll | [Symbols are not loaded yet] | Enabled | 11 | 8.0.0.0 | clrhost |
System.Collections | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.dll | [Symbols are not loaded yet] | Enabled | 12 | 8.0.0.0 | clrhost |
System.Linq | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.dll | [Symbols are not loaded yet] | Enabled | 13 | 8.0.0.0 | clrhost |
netstandard | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\netstandard.dll | [Symbols are not loaded yet] | Enabled | 14 | 2.1.0.0 | clrhost |
System.Reflection.Emit.ILGeneration | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.ILGeneration.dll | [Symbols are not loaded yet] | Enabled | 15 | 8.0.0.0 | clrhost |
HarmonySharedState | [Symbols are not loaded yet] | Enabled | 16 | 0.0.0.0 | clrhost | |
mscorlib | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\mscorlib.dll | [Symbols are not loaded yet] | Enabled | 17 | 4.0.0.0 | clrhost |
System.Reflection.Emit.Lightweight | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.Lightweight.dll | [Symbols are not loaded yet] | Enabled | 18 | 8.0.0.0 | clrhost |
System.Reflection.Primitives | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Primitives.dll | [Symbols are not loaded yet] | Enabled | 19 | 8.0.0.0 | clrhost |
System.Threading.Thread | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Threading.Thread.dll | [Symbols are not loaded yet] | Enabled | 20 | 8.0.0.0 | clrhost |
MonoMod.Utils.Cil.ILGeneratorProxy | [Symbols are not loaded yet] | Enabled | 21 | 0.0.0.0 | clrhost | |
System.Reflection.Emit | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Emit.dll | [Symbols are not loaded yet] | Enabled | 22 | 8.0.0.0 | clrhost |
System.Linq.Expressions | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Linq.Expressions.dll | [Symbols are not loaded yet] | Enabled | 23 | 8.0.0.0 | clrhost |
System.Diagnostics.Process | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.Process.dll | [Symbols are not loaded yet] | Enabled | 24 | 8.0.0.0 | clrhost |
System.ComponentModel.Primitives | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.ComponentModel.Primitives.dll | [Symbols are not loaded yet] | Enabled | 25 | 8.0.0.0 | clrhost |
System.Collections.NonGeneric | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.NonGeneric.dll | [Symbols are not loaded yet] | Enabled | 26 | 8.0.0.0 | clrhost |
Microsoft.Win32.Primitives | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\Microsoft.Win32.Primitives.dll | [Symbols are not loaded yet] | Enabled | 27 | 8.0.0.0 | clrhost |
System.Text.Json | C:\Users\Mayling\RiderProjects\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\System.Text.Json.dll | [Symbols are not loaded yet] | Enabled | 28 | 8.0.0.0 | clrhost |
System.Text.RegularExpressions | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Text.RegularExpressions.dll | [Symbols are not loaded yet] | Enabled | 29 | 8.0.0.0 | clrhost |
System.Diagnostics.StackTrace | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Diagnostics.StackTrace.dll | [Symbols are not loaded yet] | Enabled | 30 | 8.0.0.0 | clrhost |
System.Reflection.Metadata | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Reflection.Metadata.dll | [Symbols are not loaded yet] | Enabled | 31 | 8.0.0.0 | clrhost |
System.Collections.Immutable | C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.0\System.Collections.Immutable.dll | [Symbols are not loaded yet] | Enabled | 32 | 8.0.0.0 | clrhost |
from harmony.
We are working on an update to Harmony. We can see if it fixes this issue.
from harmony.
I found that , when disable jit optimization on module load
was enabled, it will throw that exception.
from harmony.
This should be fixed with the 2.3.1.1 release I just made
from harmony.
Related Issues (20)
- Add strongname to make all projects can use this library HOT 2
- Seemingly random NOP invalid IL errors HOT 4
- Correct way to patch TWindow GetWindow<TWindow>() HOT 1
- Release a new prerelease for the updated Mono.Cecil
- Error in exported Godot Engine build when attempting to patch method HOT 5
- Incorrect code generation for exception block when patching `System.Net.WebClient::DownloadFile(System.Uri address, System.String fileName)` HOT 2
- Problem patching specific method with latest pre-release HOT 2
- Harmony CANNOT be used in Godot!!!! HOT 2
- Any restriction to hook .Net service? HOT 9
- Getting an instance from the TargetMethod patch HOT 1
- Using GeneratedRegex causes failed compile due to ReadOnlySpan HOT 2
- A crash after hook:The object's current state invalidates the operation HOT 2
- Harmony fails to patch method and throws exception in exported Godot build HOT 13
- NuGet Package reference assembly conflict HOT 8
- ModuleInitializerAttribute HOT 1
- RtDynamicMethod get MetadataToken throws InvalidOperationException HOT 2
- Harmony 3.0: Utility Epic
- Investigate Testing the NuGet Package Directly HOT 3
- Add a Release Pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmony.