Warning
This project has been abandoned due to an issue in MonoMod.RuntimeDetour.HookGen which causes it to sometimes find MulticastDelegate from System.Private.CoreLib which breaks using the generated events normally.
Instead of fixing this issue, I decided to create my own detouring library (a MonoMod wrapper) with its own HookGen which should be an improvement in many ways: https://github.com/MonoDetour/MonoDetour
MonoDetour.HookGen takes https://github.com/MonoMod/MonoMod/tree/hookgenv2 and applies some modifications and fixes.
This repository is for the HookGen in MSBuild project.
See the dedicated readme at /Hamunii.MonoMod.RuntimeDetour.HookGen.MSBuild/README.md.
Note
This project is not officially linked with MonoMod.