@Timult Yeah I was aware it was being used to allow the domain and thus the dll to be unloaded dynamically. The AssemblyLoadContext in .net core can be used to do the same thing as long as the dll is loaded into a separate assembly load context with isCollectible set to true. Is that what you meant by "I've had the loader,unloader working for a while"?
I'm currently stuck on changes to the MQ2DotNetLoader.cpp plugin. Currently it hosts the .net CLR using the older `Mscoree` library approach. I was hoping to switch this to the `nethost` + `hostfxr` approach that their team recommends but I'm a noob when it comes to configuring C++ projects in VS. Their sample of the new recommended approach depends on a rather elaborate build setup to consume the `nethost.h` and `nethost.dll` from within the $(NetCoreTargetingPackRoot)`. I couldn't get their sample solution to build and I haven't figured out yet a way to get the existing MQ2DotNetLoader project to see/consume those nethost deps.
I pinged Alynel on Discord who said they'd take a look at my question when they get home. **crosses fingers**
I'm currently stuck on changes to the MQ2DotNetLoader.cpp plugin. Currently it hosts the .net CLR using the older `Mscoree` library approach. I was hoping to switch this to the `nethost` + `hostfxr` approach that their team recommends but I'm a noob when it comes to configuring C++ projects in VS. Their sample of the new recommended approach depends on a rather elaborate build setup to consume the `nethost.h` and `nethost.dll` from within the $(NetCoreTargetingPackRoot)`. I couldn't get their sample solution to build and I haven't figured out yet a way to get the existing MQ2DotNetLoader project to see/consume those nethost deps.
I pinged Alynel on Discord who said they'd take a look at my question when they get home. **crosses fingers**


.