From e53b59a8da573ff92fc0abb9486411573106b953 Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 15 Jul 2020 09:41:31 -0700 Subject: [PATCH] Project with executable services only should launch (#583) --- src/Microsoft.Tye.Hosting/ProcessRunner.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Microsoft.Tye.Hosting/ProcessRunner.cs b/src/Microsoft.Tye.Hosting/ProcessRunner.cs index 3fb9b203..e44d70b2 100644 --- a/src/Microsoft.Tye.Hosting/ProcessRunner.cs +++ b/src/Microsoft.Tye.Hosting/ProcessRunner.cs @@ -144,19 +144,19 @@ namespace Microsoft.Tye.Hosting _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; + }; } }