Skip to content

Commit 0ca19ef

Browse files
authored
Merge pull request #6 from MattLavalleeMA/fix/relative-path
Correct relative project path argument
2 parents e2fed88 + ce16536 commit 0ca19ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Depends/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ private ValidationResult OnValidate()
3838
{
3939
if (File.Exists(Project))
4040
{
41+
// Correct relative paths so they work when passed to Uri
42+
if (Path.GetFullPath(Project) != Project && File.Exists(Path.GetFullPath(Project)))
43+
{
44+
Project = Path.GetFullPath(Project);
45+
}
46+
4147
return ValidationResult.Success;
4248
}
4349

0 commit comments

Comments
 (0)