Skip to content

Commit

Permalink
Merge pull request #637 from stiefeljackal/fix/net-9
Browse files Browse the repository at this point in the history
update MonoMod.Core to 1.2.2 to address net9 issue
  • Loading branch information
pardeike authored Dec 17, 2024
2 parents 6af2558 + 08c4b1c commit f957040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<HarmonyVersion>2.3.3.0</HarmonyVersion>
<HarmonyPrerelease></HarmonyPrerelease>
<MonoModCoreVersion>1.2.1</MonoModCoreVersion>
<MonoModCoreVersion>1.2.2</MonoModCoreVersion>
</PropertyGroup>

</Project>
4 changes: 4 additions & 0 deletions HarmonyTests/IL/TestMethodBodyReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public void Test_CanGetInstructionsWithNoILGenerator()
#else
Assert.AreEqual("System.Reflection.LocalVariableInfo", instrNoGen.argument.GetType().FullName, "w/o generator argument type @ {0} ({1})", i, instrNoGen);
#endif
#if NET9_0_OR_GREATER
Assert.AreEqual(Type.GetType("System.Reflection.Emit.RuntimeLocalBuilder"), instrHasGen.argument.GetType(), "w/ generator argument type @ {0} ({1})", i, instrNoGen);
#else
Assert.AreEqual(typeof(LocalBuilder), instrHasGen.argument.GetType(), "w/ generator argument type @ {0} ({1})", i, instrNoGen);
#endif
}
}
}
Expand Down

0 comments on commit f957040

Please sign in to comment.