Any thoughts on how this might be adapted to also support injection of a managed DLL? In my case, I have a C# library which exports its functions using the library https://www.nuget.org/packages/UnmanagedExports. Since it's a managed DLL, there's no DllMain that executes when the dll is injected. I suspect the injector itself would need to contain some logic to explicitly execute the exported functions?
Managed DLLs having a different loading process that Invoke-RelectivePEInjection doesn't support. Potential alternative approaches include modifying PSInject to use your own assembly or using BlackBone to load a C++/CLI DLL.
Any thoughts on how this might be adapted to also support injection of a managed DLL? In my case, I have a C# library which exports its functions using the library https://www.nuget.org/packages/UnmanagedExports. Since it's a managed DLL, there's no DllMain that executes when the dll is injected. I suspect the injector itself would need to contain some logic to explicitly execute the exported functions?