Fix flow from the refactoring
This commit is contained in:
parent
85870a711e
commit
bcb12a69f4
1 changed files with 9 additions and 2 deletions
|
@ -37,7 +37,12 @@ namespace Microsoft.DotNet.Tools.Run
|
||||||
}
|
}
|
||||||
|
|
||||||
ICommand runCommand = GetRunCommand();
|
ICommand runCommand = GetRunCommand();
|
||||||
ApplyLaunchProfileSettingsIfNeeded(ref runCommand);
|
int launchSettingsApplicationResult = ApplyLaunchProfileSettingsIfNeeded(ref runCommand);
|
||||||
|
|
||||||
|
if (launchSettingsApplicationResult != 0)
|
||||||
|
{
|
||||||
|
return launchSettingsApplicationResult;
|
||||||
|
}
|
||||||
|
|
||||||
return runCommand
|
return runCommand
|
||||||
.Execute()
|
.Execute()
|
||||||
|
@ -80,7 +85,7 @@ namespace Microsoft.DotNet.Tools.Run
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ApplyLaunchProfileSettingsIfNeeded(ref ICommand runCommand)
|
private int ApplyLaunchProfileSettingsIfNeeded(ref ICommand runCommand)
|
||||||
{
|
{
|
||||||
if (UseLaunchProfile)
|
if (UseLaunchProfile)
|
||||||
{
|
{
|
||||||
|
@ -114,6 +119,8 @@ namespace Microsoft.DotNet.Tools.Run
|
||||||
Reporter.Error.WriteLine(LocalizableStrings.RunCommandExceptionCouldNotLocateALaunchSettingsFile.Bold().Red());
|
Reporter.Error.WriteLine(LocalizableStrings.RunCommandExceptionCouldNotLocateALaunchSettingsFile.Bold().Red());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EnsureProjectIsBuilt()
|
private void EnsureProjectIsBuilt()
|
||||||
|
|
Loading…
Reference in a new issue