Skip to content

Commit

Permalink
Merge pull request #412 from b4b4t/fix/dotnet-build
Browse files Browse the repository at this point in the history
[Generator] Vide les buffers lors du build des générateurs custom
  • Loading branch information
JabX authored Nov 28, 2024
2 parents 4b47708 + ce42ba4 commit f215f24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion TopModel.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f215f24

Please sign in to comment.