Dynamically loading native dependency of NuGet package fails when compiling for specific RID
I am attempting to utilize https://github.com/HexaEngine/Hexa.NET.ImGui in a project compiled for a specific RID. This NuGet package has a native dep,
When compiling the .NET library that uses it for a specific RID, that specific RID's version of the dependencies gets emitted next to the consuming library itself. Yet at runtime the dependency/dependencies cannot be found.
The
yet these DLLs are not under
cimgui.dll, selected per RID.When compiling the .NET library that uses it for a specific RID, that specific RID's version of the dependencies gets emitted next to the consuming library itself. Yet at runtime the dependency/dependencies cannot be found.
The
.deps.json is a bit confusing in this regard:yet these DLLs are not under
runtimes/{RID}/native or lib/net9.0/ relative to fhcore, they're right next to it. What causes this discrepancy, and is it the reason the libraries cannot be found?