This commit is contained in:
John Luo 2021-01-19 10:47:51 -08:00
Родитель 392fc91d37
Коммит d9fa83a871
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -367,12 +367,13 @@ namespace Microsoft.Tye.Hosting
if (ongoingProcess != newProcess)
{
_logger.LogDebug($"[{replica}] A build has already been triggered for project {projectFile}");
return (await ongoingProcess.Task).ExitCode;
}
_logger.LogDebug($"[{replica}] Building project {projectFile}:");
_logger.LogDebug($"[{replica}] Building project {projectFile}");
var buildResult = await ProcessUtil.RunAsync("dotnet", $"build \"{service.Status.ProjectFilePath}\" /nologo", throwOnError: false, workingDirectory: application.ContextDirectory);
_logger.LogDebug($"[{replica}] Finished Building project {projectFile}:");
_logger.LogDebug($"[{replica}] Finished Building project {projectFile}");
ongoingProcess.SetResult(buildResult);