MonoModReorg.Core
22.11.8-prerelease
See the version list below for details.
dotnet add package MonoModReorg.Core --version 22.11.8-prerelease
NuGet\Install-Package MonoModReorg.Core -Version 22.11.8-prerelease
<PackageReference Include="MonoModReorg.Core" Version="22.11.8-prerelease" />
paket add MonoModReorg.Core --version 22.11.8-prerelease
#r "nuget: MonoModReorg.Core, 22.11.8-prerelease"
// Install MonoModReorg.Core as a Cake Addin #addin nuget:?package=MonoModReorg.Core&version=22.11.8-prerelease&prerelease // Install MonoModReorg.Core as a Cake Tool #tool nuget:?package=MonoModReorg.Core&version=22.11.8-prerelease&prerelease
THIS IS PROBABLY NOT THE LIBRARY YOU WANT TO BE USING. You probably want RuntimeDetour
instead.
You have been warned.
Notable APIs
MonoMod.Core.DetourFactory.Current
MonoMod.Core.ICoreDetour
Usage
Use DetourFactory.Current.CreateDetour
to create a single detour from one method to another. The detour will be
automatically undone when the returnedc 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.)
Other potentially useful APIs
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 providedMethodBase
into an instance which can be used as, for instance, the key to aConditionalWeakTable
The 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 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- Mono.Cecil (>= 0.10.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
-
.NETFramework 4.5.2
- Mono.Cecil (>= 0.11.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
-
.NETStandard 2.0
- Mono.Cecil (>= 0.11.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
- System.Collections.NonGeneric (>= 4.0.0)
- System.ComponentModel.TypeConverter (>= 4.0.0)
- System.IO.FileSystem.Primitives (>= 4.0.0)
- System.Reflection.Emit.ILGeneration (>= 4.0.0)
- System.Reflection.Emit.Lightweight (>= 4.0.0)
- System.Reflection.TypeExtensions (>= 4.0.0)
-
net5.0
- Mono.Cecil (>= 0.11.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
-
net6.0
- Mono.Cecil (>= 0.11.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
-
net7.0
- Mono.Cecil (>= 0.11.4)
- MonoModReorg.Backports (>= 22.11.8-prerelease)
- MonoModReorg.ILHelpers (>= 22.11.8-prerelease)
- MonoModReorg.Utils (>= 22.11.8-prerelease)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MonoModReorg.Core:
Package | Downloads |
---|---|
MonoModReorg.RuntimeDetour
Flexible and easily extensible runtime detouring library. Wrap, replace and manipulate (Mono.Cecil) methods at runtime. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
23.3.22.1 | 9,551 | 3/23/2023 |
23.3.2.1 | 2,248 | 3/2/2023 |
23.1.2-prerelease.1 | 5,767 | 1/3/2023 |
22.11.21-prerelease.2 | 1,204 | 11/22/2022 |
22.11.21-prerelease.1 | 119 | 11/21/2022 |
22.11.17-prerelease.1 | 138 | 11/17/2022 |
22.11.9-prerelease.1 | 616 | 11/9/2022 |
22.11.8-prerelease.1 | 130 | 11/8/2022 |
22.11.8-prerelease | 199 | 11/8/2022 |
22.11.4-prerelease | 187 | 11/5/2022 |
22.10.25-prerelease | 190 | 10/25/2022 |
22.10.21-prerelease | 181 | 10/21/2022 |
22.10.11-prerelease | 203 | 10/11/2022 |
22.10.6-prerelease | 178 | 10/6/2022 |
22.9.29-prerelease | 220 | 9/29/2022 |
22.9.23-prerelease | 311 | 9/23/2022 |
22.9.14-prerelease | 237 | 9/14/2022 |
22.9.7-prerelease | 180 | 9/7/2022 |
22.8.29-prerelease | 191 | 8/29/2022 |