Skip to content

Commit

Permalink
Project with executable services only should launch (dotnet#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Luo authored Jul 15, 2020
1 parent 4f8056b commit e53b59a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Microsoft.Tye.Hosting/ProcessRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ service.Description.RunInfo is ProjectRunInfo project2 &&
_logger.LogInformation("Building projects failed with exit code {ExitCode}: \r\n" + buildResult.StandardOutput, buildResult.ExitCode);
return;
}
}

foreach (var s in application.Services)
foreach (var s in application.Services)
{
switch (s.Value.ServiceType)
{
switch (s.Value.ServiceType)
{
case ServiceType.Executable:
LaunchService(application, s.Value);
break;
case ServiceType.Project:
LaunchService(application, s.Value);
break;
};
}
case ServiceType.Executable:
LaunchService(application, s.Value);
break;
case ServiceType.Project:
LaunchService(application, s.Value);
break;
};
}
}

Expand Down

0 comments on commit e53b59a

Please sign in to comment.