mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix PluginPacker crash
This commit is contained in:
@@ -34,7 +34,7 @@ namespace BTCPayServer.PluginPacker
|
|||||||
throw new Exception($"{rootDLLPath} could not be found");
|
throw new Exception($"{rootDLLPath} could not be found");
|
||||||
}
|
}
|
||||||
|
|
||||||
var plugin = PluginLoader.CreateFromAssemblyFile(rootDLLPath, false, new[] { typeof(IBTCPayServerPlugin) });
|
var plugin = PluginLoader.CreateFromAssemblyFile(rootDLLPath, false, new[] { typeof(IBTCPayServerPlugin) }, o => o.PreferSharedTypes = true);
|
||||||
var assembly = plugin.LoadAssembly(name);
|
var assembly = plugin.LoadAssembly(name);
|
||||||
var extension = GetAllExtensionTypesFromAssembly(assembly).FirstOrDefault();
|
var extension = GetAllExtensionTypesFromAssembly(assembly).FirstOrDefault();
|
||||||
if (extension is null)
|
if (extension is null)
|
||||||
|
|||||||
Reference in New Issue
Block a user