Skip to content

Commit

Permalink
Tools: Pass absolute project paths to ef.exe
Browse files Browse the repository at this point in the history
Fixes #25625
  • Loading branch information
bricelam committed Sep 14, 2021
1 parent 0458d08 commit d31ba4b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/dotnet-ef/RootCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,14 @@ private static List<string> ResolveProjects(string? path)
{
path = Directory.GetCurrentDirectory();
}
else if (!Directory.Exists(path)) // It's not a directory
else
{
return new List<string> { path };
path = Path.GetFullPath(path);

if (!Directory.Exists(path)) // It's not a directory
{
return new List<string> { path };
}
}

var projectFiles = Directory.EnumerateFiles(path, "*.*proj", SearchOption.TopDirectoryOnly)
Expand Down

0 comments on commit d31ba4b

Please sign in to comment.