tzainten
❔ Confused about Assembly.Load (Hotloading CSharp Assemblies)
I want to be able to load/unload user made C# libraries during runtime. However, these user libraries rely on one C# FunctionLibrary.dll file I made that will basically hold functions that call Native C++ functions.
FunctionLibrary.dll is structured like this:
UserLibrary.dll is structured like this:
FunctionLibrary.dll
and UserLibrary.dll
are loaded using Assembly.Load
, which looks something like this:
Invoking MyLibrary.OnStartup
prints false
, not true
. I assume I'm just going the wrong way about this, but I'm not really sure how to achieve my goal. I appreciate any help I can get on understanding what I'm doing wrong.9 replies