Skip to content

Commit 4727a27

Browse files
committed
Render trx version in GH comment
1 parent a0ee98e commit 4727a27

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

src/dotnet-trx/TrxCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class TrxCommand : Command<TrxCommand.TrxSettings>
2525
const string Signature = "<!-- trx -->";
2626

2727
static string Author =>
28-
$"from [{ThisAssembly.Project.PackageId}]({ThisAssembly.Project.PackageProjectUrl}) on {RuntimeInformation.FrameworkDescription} with [:purple_heart:](https://github.com/sponsors/devlooped)";
28+
$"from [{ThisAssembly.Project.PackageId}]({ThisAssembly.Project.PackageProjectUrl}) v{ThisAssembly.Project.Version} on {RuntimeInformation.FrameworkDescription} with [:purple_heart:](https://github.com/sponsors/devlooped)";
2929

3030
public class TrxSettings : CommandSettings
3131
{

src/dotnet-trx/dotnet-trx.csproj

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,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.2" />
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.10.1" />
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">
39-
<WriteLinesToFile Lines="```shell" Overwrite="true" File="help.md" />
40-
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" EnvironmentVariables="NO_COLOR=true" />
41-
<WriteLinesToFile Lines="```" Overwrite="false" File="help.md" />
42-
</Target>
43-
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.2" />
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.10.1" />
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">
39+
<WriteLinesToFile Lines="```shell" Overwrite="true" File="help.md" />
40+
<Exec Command="dotnet run --no-build -- --help &gt;&gt; help.md" EnvironmentVariables="NO_COLOR=true" />
41+
<WriteLinesToFile Lines="```" Overwrite="false" File="help.md" />
42+
</Target>
43+
4444
</Project>

0 commit comments

Comments
 (0)