PR Feedback
This commit is contained in:
parent
976393ab0a
commit
abff1f474c
1 changed files with 2 additions and 4 deletions
|
@ -208,7 +208,7 @@ namespace Microsoft.DotNet.Tools.Common
|
|||
{
|
||||
try
|
||||
{
|
||||
directoryPath = Path.GetDirectoryName(directoryPath);
|
||||
directoryPath = Path.GetDirectoryName(path);
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
@ -222,9 +222,7 @@ namespace Microsoft.DotNet.Tools.Common
|
|||
}
|
||||
|
||||
string projectRootPath = null;
|
||||
|
||||
directoryPath = directoryPath ?? Directory.GetCurrentDirectory();
|
||||
|
||||
|
||||
var directory = new DirectoryInfo(directoryPath);
|
||||
|
||||
while (projectRootPath == null && directory != null)
|
||||
|
|
Loading…
Reference in a new issue