diff --git a/BTCPayServer/Plugins/Dotnet/Loader/ManagedLoadContext.cs b/BTCPayServer/Plugins/Dotnet/Loader/ManagedLoadContext.cs index 09add8ae6..cb83ccf2e 100644 --- a/BTCPayServer/Plugins/Dotnet/Loader/ManagedLoadContext.cs +++ b/BTCPayServer/Plugins/Dotnet/Loader/ManagedLoadContext.cs @@ -69,6 +69,7 @@ namespace BTCPayServer.Plugins.Dotnet.Loader _additionalProbingPaths = additionalProbingPaths ?? throw new ArgumentNullException(nameof(additionalProbingPaths)); _assemblyLoadContexts.Add(defaultLoadContext); _preferDefaultLoadContext = preferDefaultLoadContext; + _loadAssembliesInDefaultLoadContext = loadAssembliesInDefaultLoadContext; _loadInMemory = loadInMemory; _lazyLoadReferences = lazyLoadReferences;