From f046075dcf1e7a9fb38673ca457cb51612a792f0 Mon Sep 17 00:00:00 2001 From: glopesdev Date: Sat, 12 Nov 2022 19:23:01 +0000 Subject: [PATCH] Ensure consistent native extension search order --- Bonsai.Configuration/ConfigurationHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bonsai.Configuration/ConfigurationHelper.cs b/Bonsai.Configuration/ConfigurationHelper.cs index f47d3be9d..e0b8478d5 100644 --- a/Bonsai.Configuration/ConfigurationHelper.cs +++ b/Bonsai.Configuration/ConfigurationHelper.cs @@ -109,7 +109,8 @@ public static void SetAssemblyResolve(PackageConfiguration configuration, bool a var libraryPaths = from folder in configuration.LibraryFolders where folder.Platform == platform select folder.Path; - foreach (var libraryPath in libraryPaths.Concat(configuration.ExtensionFolders)) + var extensionPaths = configuration.ExtensionFolders.Reverse(); + foreach (var libraryPath in libraryPaths.Concat(extensionPaths)) { var path = libraryPath; if (!Path.IsPathRooted(path))