From f05017f9c1b297d0dcb586246200b1eb9e46f23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baptiste=20Copp=C3=A9r=C3=A9?= Date: Wed, 20 Nov 2024 16:18:47 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20vide=20les=20buffers=20lors=20du=20b?= =?UTF-8?q?uild=20des=20g=C3=A9n=C3=A9rateurs=20custom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TopModel.Generator/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TopModel.Generator/Program.cs b/TopModel.Generator/Program.cs index 1402c5e9..35cac28c 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!.StandardOutput.ReadToEndAsync(); await build!.WaitForExitAsync(); if (build.ExitCode != 0) From ce42ba443b7c9e68cbfca01a784eeff8cfb258e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baptiste=20Copp=C3=A9r=C3=A9?= Date: Thu, 21 Nov 2024 16:07:25 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20corrige=20ligne=20dupliqu=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TopModel.Generator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TopModel.Generator/Program.cs b/TopModel.Generator/Program.cs index 35cac28c..21b0f832 100644 --- a/TopModel.Generator/Program.cs +++ b/TopModel.Generator/Program.cs @@ -306,7 +306,7 @@ void SearchConfigFile(string dirName, int depth = 0) }); await build!.StandardOutput.ReadToEndAsync(); - await build!.StandardOutput.ReadToEndAsync(); + await build!.StandardError.ReadToEndAsync(); await build!.WaitForExitAsync(); if (build.ExitCode != 0)