Fix loading of plugins in the plugin directory

This commit is contained in:
nicolas.dorier 2023-01-16 16:31:26 +09:00
parent 2e31816979
commit ee70fe85c0
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -86,7 +86,7 @@ namespace BTCPayServer.Plugins
// Load from the plugins folder
foreach (var directory in Directory.GetDirectories(pluginsFolder))
{
var pluginIdentifier = Path.GetDirectoryName(directory);
var pluginIdentifier = Path.GetFileName(directory);
var pluginFilePath = Path.Combine(directory, pluginIdentifier + ".dll");
if (!File.Exists(pluginFilePath))
continue;