unknownv2 / CoreHook

A library that simplifies intercepting application function calls using managed code and the .NET Core runtime
MIT License
259 stars 40 forks source link

Easier usage via NuGet? #135

Closed alexrp closed 3 years ago

alexrp commented 4 years ago

Hello,

I am currently using EasyHook for two of my projects. I'd like to migrate both to .NET Core, so I'm considering CoreHook.

A really nice thing about EasyHook is that its NuGet package contains everything you need, including the unmanaged libraries required for injection and hosting. This means that all you have to do is reference the NuGet package and those dependencies will all get copied to your build output directory. You can then use RemoteHooking.Inject(...) and everything just works; there's no need to manually download and unzip any archives (as is required for CoreHook.Host).

Here's an example of how I'm using EasyHook in practice, in case it's relevant:

Would it be possible to make the CoreHook NuGet package similarly easy to consume?

unknownv2 commented 4 years ago

There's no on-going development for this project anymore, but it might be possible to write a PowerShell script to replicate that functionality.