tzainten
❔ Confused about Assembly.Load (Hotloading CSharp Assemblies)
I've also modified the host's code to look like this:
Which again, works if I just compile the host as a .exe and run it on it's own. But it does not work if I try compiling it as a .dll and loading it with HostFXR, it produces the error above.
9 replies
❔ Confused about Assembly.Load (Hotloading CSharp Assemblies)
Well what I'm doing is using the HostFXR API to host a C# runtime so I can interop with C++ functions. I've changed the project to output to a .exe just for testing purposes, and it prints out the expected result of "True".
However, when I switch the project back to "Class Library" and try to load the library with HostFXR, it prints out this error:
9 replies