Heya, so I'm converting a bunch of projects to native aot, this is previously a hostfxr hosted application.
I've got it working so that I load into the "entry" dll and poke it to start doing work using a LoadLibrary and GetProcAddress. This entry Dll then tries to load a list of other Dlls and iterate over all the loaded types to cache things. Previously this worked with AssemblyLoadContext, I have swapped to use NativeLibrary.Load to support the AOT'd Dlls which does load but the types don't appear in current assembly or domains.
tl;dr how do you manually load an AOTd dll from AOTd C# in a way that you can inspect its types, or is this not possible? When the runtime loads some other dlls itself (via dependencies of the entry Dll) the types do appear in the domain.