In #90120 support was added for NativeAOT applications to respect DllImportSearchPath.AssemblyDirectory as relative to the binary on disk. However, this doesn't necessarily apply to NativeAOT scenarios for libraries.
- What should the assembly directory be when a class library is NativeAOT'd?
See original application issue at #89874.