MonoDetour.HookGen
0.5.0
See the version list below for details.
dotnet add package MonoDetour.HookGen --version 0.5.0
NuGet\Install-Package MonoDetour.HookGen -Version 0.5.0
<PackageReference Include="MonoDetour.HookGen" Version="0.5.0" />
<PackageVersion Include="MonoDetour.HookGen" Version="0.5.0" />
<PackageReference Include="MonoDetour.HookGen" />
paket add MonoDetour.HookGen --version 0.5.0
#r "nuget: MonoDetour.HookGen, 0.5.0"
#addin nuget:?package=MonoDetour.HookGen&version=0.5.0
#tool nuget:?package=MonoDetour.HookGen&version=0.5.0
MonoDetour.HookGen
MonoDetour | MonoDetour.HookGen |
---|---|
Add to Your Project
Change the version number to optimally the newest:
<ItemGroup>
<PackageReference Include="MonoDetour.HookGen" Version="0.4.2" PrivateAssets="all" />
<PackageReference Include="MonoDetour" Version="0.4.0" />
</ItemGroup>
MonoDetour.HookGen will automatically bring in the oldest MonoDetour reference it supports, so it's a good idea to specify the version for both.
Additionally MonoDetour automatically brings in the oldest MonoMod.RuntimeDetour version it supports, so also specify its version to the one you want (or don't if it's included by e.g. BepInEx references). MonoDetour should support MonoMod.RuntimeDetour versions 21.12.13.1 and 25.*, with possibly anything in between.
Note that MonoDetour.HookGen will strip unused generated hooks when building with Release
configuration by default when MonoDetourHookGenStripUnusedHooks
is undefined (evaluates to empty string).
You can configure this setting yourself however you wish, such as replicating the default behavior:
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<MonoDetourHookGenStripUnusedHooks>true</MonoDetourHookGenStripUnusedHooks>
</PropertyGroup>
Having this setting enabled will be more expensive generation wise and intellisense may not keep up when writing hooks, e.g. Prefix, Postfix and ILHook methods may not immediately appear when typing On.Namespace.Type.Method.
even if they have just been generated.
If the default HookGen namespace On
causes collisions or you just don't like it, you can set it with the following property:
<PropertyGroup>
<MonoDetourHookGenNamespace>On</MonoDetourHookGenNamespace>
</PropertyGroup>
Documentation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 | 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. |
-
.NETStandard 2.0
- MonoDetour (>= 0.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.4 | 118 | 6/6/2025 |
0.5.0 | 127 | 6/4/2025 |
0.4.2 | 130 | 5/29/2025 |
0.4.1 | 133 | 5/28/2025 |
0.4.0 | 131 | 5/28/2025 |
0.3.0-dev | 132 | 5/27/2025 |
0.1.1-dev | 135 | 5/25/2025 |
0.1.0-dev.10 | 116 | 5/25/2025 |
0.1.0-dev.1 | 69 | 5/24/2025 |
0.1.0-dev.0 | 38 | 5/24/2025 |