Skip to content

Commit

Permalink
Use Assembly.Location instead of Assembly.CodeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
runeflobakk committed Feb 18, 2025
1 parent 32f73b3 commit 86ae724
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ConstructorMethod : AbstractDocumentTests
private static string Document_file_path()
{
var executingAssembly = Assembly.GetExecutingAssembly();
var executablePath = Path.GetDirectoryName(executingAssembly.CodeBase);
var executablePath = Path.GetDirectoryName(executingAssembly.Location);
var documentPath = Path.Combine(executablePath, "Resources", "Documents", "Dokument.pdf");
return new Uri(documentPath).LocalPath;
}
Expand Down

0 comments on commit 86ae724

Please sign in to comment.