fix plugin packer when relative path provided

This commit is contained in:
Kukks
2023-02-02 10:13:56 +01:00
parent ae7b621e3d
commit 6e42eaa26c

View File

@@ -28,7 +28,7 @@ namespace BTCPayServer.PluginPacker
var name = args[1];
var outputDir = Path.Combine(args[2], name);
var outputFile = Path.Combine(outputDir, name);
var rootDLLPath = Path.Combine(directory, name + ".dll");
var rootDLLPath = Path.GetFullPath(Path.Combine(directory, name + ".dll"));
if (!File.Exists(rootDLLPath))
{
throw new Exception($"{rootDLLPath} could not be found");