Skip to content

Inject and call the nethost/hostfxr APIs to host .NET Core runtime in a target process.

License

Notifications You must be signed in to change notification settings

theXappy/InjectableDotNetHost

Repository files navigation

InjectableDotNetHost NuGet

This project provides a way to host the .NET Core/5/6/7+ runtime in a native (C/C++/...) target app.
It is done by injecting a native (C++) dll into the target, so the targets of this project are closed-source apps.
If you have the source code for the target, you should call the nethost APIs directly like here:
https://github.com/dotnet/samples/tree/main/core/hosting

Thanks

Most of the code in the repo was directly copied from Rutherther/NosSmooth.Local
Some adjustments were done to also target x64 processes.

About

Inject and call the nethost/hostfxr APIs to host .NET Core runtime in a target process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published