Skip to content

Commit 85a72b3

Browse files
committed
Remove previous workaround for styles
This seems to work just fine now :)
1 parent 4f68f5f commit 85a72b3

File tree

2 files changed

+46
-47
lines changed

2 files changed

+46
-47
lines changed

src/dotnet-trx/Program.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
// Causes -v|--version to be added to help
2727
config.SetApplicationVersion(ThisAssembly.Project.Version);
2828

29-
if (Environment.GetEnvironmentVariables().Contains("NO_COLOR") &&
30-
config.Settings.HelpProviderStyles?.Options is { } options)
31-
options.DefaultValue = Style.Plain;
29+
if (Environment.GetEnvironmentVariables().Contains("NO_COLOR"))
30+
config.Settings.HelpProviderStyles = null;
3231
});
3332

3433
if (args.Contains("--version"))

src/dotnet-trx/dotnet-trx.csproj

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
6-
<RootNamespace>Devlooped</RootNamespace>
7-
<GenerateDocumentationFile>false</GenerateDocumentationFile>
8-
<RollForward>Major</RollForward>
9-
<ToolCommandName>trx</ToolCommandName>
10-
<PackageId>dotnet-trx</PackageId>
11-
<Description>Pretty-print test results in TRX format</Description>
12-
<PackageTags>dotnet tests dotnet-tools</PackageTags>
13-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackAsTool>true</PackAsTool>
15-
<BuildDate>$([System.DateTime]::Now.ToString("yyyy-MM-dd"))</BuildDate>
16-
<BuildRef>$(GITHUB_REF_NAME)</BuildRef>
17-
</PropertyGroup>
18-
19-
<ItemGroup>
20-
<PackageReference Include="NuGetizer" Version="1.2.3" />
21-
<PackageReference Include="Devlooped.Web" Version="1.2.2" />
22-
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
23-
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
24-
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
25-
<PackageReference Include="ThisAssembly.Git" Version="1.5.0" PrivateAssets="all" />
26-
<PackageReference Include="ThisAssembly.Project" Version="1.5.0" PrivateAssets="all" />
27-
</ItemGroup>
28-
29-
<ItemGroup>
30-
<ProjectProperty Include="ToolCommandName" />
31-
<ProjectProperty Include="BuildDate" />
32-
<ProjectProperty Include="BuildRef" />
33-
<ProjectProperty Include="PackageId" />
34-
<ProjectProperty Include="PackageVersion" />
35-
<ProjectProperty Include="PackageProjectUrl" />
36-
</ItemGroup>
37-
38-
<Target Name="RenderHelp" AfterTargets="Build" Condition="$(DesignTimeBuild) != 'true'">
39-
<WriteLinesToFile Lines="```shell" Overwrite="true" Encoding="UTF-8" File="help.md" />
40-
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" StdOutEncoding="UTF-8"
41-
EnvironmentVariables="NO_COLOR=true" />
42-
<WriteLinesToFile Lines="```" Overwrite="false" Encoding="UTF-8" File="help.md" />
43-
</Target>
44-
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<RootNamespace>Devlooped</RootNamespace>
7+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
8+
<RollForward>Major</RollForward>
9+
<ToolCommandName>trx</ToolCommandName>
10+
<PackageId>dotnet-trx</PackageId>
11+
<Description>Pretty-print test results in TRX format</Description>
12+
<PackageTags>dotnet tests dotnet-tools</PackageTags>
13+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14+
<PackAsTool>true</PackAsTool>
15+
<BuildDate>$([System.DateTime]::Now.ToString("yyyy-MM-dd"))</BuildDate>
16+
<BuildRef>$(GITHUB_REF_NAME)</BuildRef>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<PackageReference Include="NuGetizer" Version="1.2.3" />
21+
<PackageReference Include="Devlooped.Web" Version="1.2.2" />
22+
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
23+
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
24+
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
25+
<PackageReference Include="ThisAssembly.Git" Version="1.5.0" PrivateAssets="all" />
26+
<PackageReference Include="ThisAssembly.Project" Version="1.5.0" PrivateAssets="all" />
27+
</ItemGroup>
28+
29+
<ItemGroup>
30+
<ProjectProperty Include="ToolCommandName" />
31+
<ProjectProperty Include="BuildDate" />
32+
<ProjectProperty Include="BuildRef" />
33+
<ProjectProperty Include="PackageId" />
34+
<ProjectProperty Include="PackageVersion" />
35+
<ProjectProperty Include="PackageProjectUrl" />
36+
</ItemGroup>
37+
38+
<Target Name="RenderHelp" AfterTargets="Build" Condition="$(DesignTimeBuild) != 'true'">
39+
<WriteLinesToFile Lines="```shell" Overwrite="true" Encoding="UTF-8" File="help.md" />
40+
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" StdOutEncoding="UTF-8"
41+
EnvironmentVariables="NO_COLOR=true" />
42+
<WriteLinesToFile Lines="```" Overwrite="false" Encoding="UTF-8" File="help.md" />
43+
</Target>
44+
4545
</Project>

0 commit comments

Comments
 (0)