Skip to content

Commit 9b3acf8

Browse files
committed
Update dlibPath to use dynamic base directory path
Previously, the `dlibPath` variable was hardcoded as a relative path. This commit updates it to dynamically construct the path using `AppDomain.CurrentDomain.BaseDirectory` and appending the relative path. This change improves robustness and ensures the path resolves correctly in different execution environments.
1 parent 20e02cb commit 9b3acf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SignToolGUI/Forms/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ private async Task SignWithTrustedSigningAsync()
13641364
}
13651365
}
13661366

1367-
var dlibPath = @".\Tools\Azure.CodeSigning.Dlib.dll";
1367+
var dlibPath = AppDomain.CurrentDomain.BaseDirectory + "Tools\\Azure.CodeSigning.Dlib.dll";
13681368
var codeSigningAccountName = textBoxCodeSigningAccountName.Text;
13691369
var certificateProfileName = textBoxCertificateProfileName.Text;
13701370
var correlationIdData = textBoxCorrelationId.Text;

0 commit comments

Comments
 (0)