![]() |
VOOZH | about |
dotnet add package MonoMod.Core --version 1.3.4
NuGet\Install-Package MonoMod.Core -Version 1.3.4
<PackageReference Include="MonoMod.Core" Version="1.3.4" />
<PackageVersion Include="MonoMod.Core" Version="1.3.4" />Directory.Packages.props
<PackageReference Include="MonoMod.Core" />Project file
paket add MonoMod.Core --version 1.3.4
#r "nuget: MonoMod.Core, 1.3.4"
#:package MonoMod.Core@1.3.4
#addin nuget:?package=MonoMod.Core&version=1.3.4Install as a Cake Addin
#tool nuget:?package=MonoMod.Core&version=1.3.4Install as a Cake Tool
RuntimeDetour instead.MonoMod.Core.DetourFactory.CurrentMonoMod.Core.ICoreDetourUse DetourFactory.Current.CreateDetour to create a single detour from one method to another. The detour will be
automatically undone when the returned object is disposed or garbage collected. Only one such detour may be made per
method. If multiple are made, they will not be cleaned up properly. MonoMod.Core does not track which methods have
already been detoured, and will not throw.
It is therefore highly recommended to use a higher-level detouring API (like that provided by
MonoMod.RuntimeDetour or Harmony) to perform detours. Those higher level APIs also provide solutions to many of
the limitations to Core's detour abstraction, such as the ability to call the original, unmodified method, or
modify the IL of the method. (See their documentation for how this is actually done.)
Additionally, interfaces in this package may have members added across minor version updates. Other version-based compatibility guarantees are retained.
The default IDetourFactory utilizes MonoMod.Core.Platforms.PlatformTriple.Current to implement detours. Notably,
that factory handles re-creating the underlying ISimpleNativeDetour objects when methods are recompiled by the
runtime.
PlatformTriple does provide a few other utilities which may be useful for a higher-level library, however:
PlatformTriple.Prepare JIT compiles a method, sully supporting generic instantiationsPlatformTriple.GetIdentifiable translates the provided MethodBase into an instance which can be used as, for
instance, the key to a ConditionalWeakTableThe other methods of PlatformTriple are means of implementing the detour factory, and likely should not be touched.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net35 net35 is compatible. net40 net40 was computed. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 is compatible. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on MonoMod.Core:
| Package | Downloads |
|---|---|
|
MonoMod.RuntimeDetour
Flexible and easily extensible runtime detouring library. Wrap, replace and manipulate (Mono.Cecil) methods at runtime. |
|
|
Rookout
Rookout is a .NET package that supports on the fly debugging and data extraction from .NET applications in production. |
|
|
Lib.Harmony.Thin
A general non-destructive patch library for .NET and Mono modules. |
|
|
SMock
SMock is opensource lib for mocking static and instance methods and properties. |
|
|
MockMe
The concrete type mocking library for .NET |
Showing the top 2 popular GitHub repositories that depend on MonoMod.Core:
| Repository | Stars |
|---|---|
|
pardeike/Harmony
A library for patching, replacing and decorating .NET and Mono methods during runtime
|
|
| Bannerlord-Coop-Team/BannerlordCoop |
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.4 | 60,665 | 3/8/2026 |
| 1.3.3 | 118,585 | 11/12/2025 |
| 1.3.2 | 1,970 | 11/2/2025 |
| 1.3.1 | 14,828 | 9/16/2025 |
| 1.3.0 | 21,728 | 8/17/2025 |
| 1.2.3 | 86,759 | 2/5/2025 |
| 1.2.2 | 44,668 | 12/12/2024 |
| 1.2.1 | 25,481 | 11/13/2024 |
| 1.2.0.1 | 2,141 | 10/22/2024 |
| 1.2.0 | 3,450 | 9/16/2024 |
| 1.1.2 | 19,428 | 6/11/2024 |
| 1.1.1 | 8,990 | 5/15/2024 |
| 1.1.0 | 1,218,743 | 2/6/2024 |
| 1.1.0-prerelease.2 | 133,998 | 1/8/2024 |
| 1.1.0-prerelease.1 | 10,824 | 12/7/2023 |
| 1.0.1 | 243,570 | 8/5/2023 |
| 1.0.0 | 126,872 | 6/16/2023 |
| 1.0.0-prerelease.2 | 223,234 | 5/25/2023 |
| 1.0.0-prerelease.1 | 576 | 5/20/2023 |