diff --git a/TopModel.Generator/Program.cs b/TopModel.Generator/Program.cs index 1402c5e9..21b0f832 100644 --- a/TopModel.Generator/Program.cs +++ b/TopModel.Generator/Program.cs @@ -300,8 +300,13 @@ void SearchConfigFile(string dirName, int depth = 0) Arguments = "build -v q", WorkingDirectory = customDir, RedirectStandardOutput = true, - StandardOutputEncoding = Encoding.UTF8 + RedirectStandardError = true, + StandardOutputEncoding = Encoding.UTF8, + StandardErrorEncoding = Encoding.UTF8 }); + + await build!.StandardOutput.ReadToEndAsync(); + await build!.StandardError.ReadToEndAsync(); await build!.WaitForExitAsync(); if (build.ExitCode != 0)