From cd189aa920d5a45c72da74be297abc75f350f355 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Sat, 8 Jul 2023 20:35:13 -0500 Subject: [PATCH] 'dotnet publish' throws all native libs for current arch into single output folder. This isn't super great, but add that to the boot library path until a better solution comes around. I do not understand how .deps.json is involved in this. fixes #379 --- src/IKVM.Runtime/JVM.Properties.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IKVM.Runtime/JVM.Properties.cs b/src/IKVM.Runtime/JVM.Properties.cs index 33e4041556..3cd89bf9d1 100644 --- a/src/IKVM.Runtime/JVM.Properties.cs +++ b/src/IKVM.Runtime/JVM.Properties.cs @@ -649,6 +649,9 @@ static IEnumerable GetBootLibraryPathsIter() if (self == null) yield break; + // implicitly include native libraries along side application (publish) + yield return self; + // search in runtime specific directories foreach (var rid in RuntimeUtil.SupportedRuntimeIdentifiers) yield return Path.Combine(self, "runtimes", rid, "native");