diff --git a/src/dotnet-trx/Program.cs b/src/dotnet-trx/Program.cs index d4b8760..3a0a2c8 100644 --- a/src/dotnet-trx/Program.cs +++ b/src/dotnet-trx/Program.cs @@ -26,9 +26,8 @@ // Causes -v|--version to be added to help config.SetApplicationVersion(ThisAssembly.Project.Version); - if (Environment.GetEnvironmentVariables().Contains("NO_COLOR") && - config.Settings.HelpProviderStyles?.Options is { } options) - options.DefaultValue = Style.Plain; + if (Environment.GetEnvironmentVariables().Contains("NO_COLOR")) + config.Settings.HelpProviderStyles = null; }); if (args.Contains("--version")) diff --git a/src/dotnet-trx/dotnet-trx.csproj b/src/dotnet-trx/dotnet-trx.csproj index 87f344b..232ee41 100644 --- a/src/dotnet-trx/dotnet-trx.csproj +++ b/src/dotnet-trx/dotnet-trx.csproj @@ -35,10 +35,11 @@ - - - - - + + + + + \ No newline at end of file