Skip to content

Commit

Permalink
Disable color output for the build host process
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmalinowski committed Sep 5, 2023
1 parent df96112 commit ce7780c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Workspaces/Core/MSBuild.BuildHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ internal static async Task Main(string[] args)
var loggerFactory = LoggerFactory.Create(builder =>
builder.AddConsole(configure =>
{
// DisableColors is deprecated in favor of us moving to simple console, but that loses the LogToStandardErrorThreshold
// which we also need
#pragma warning disable CS0618
configure.DisableColors = true;
#pragma warning restore CS0618
configure.LogToStandardErrorThreshold = LogLevel.Trace;
}));

Expand Down

0 comments on commit ce7780c

Please sign in to comment.