Skip to content

Commit

Permalink
fix: output version info to text file
Browse files Browse the repository at this point in the history
  • Loading branch information
ktos committed Nov 19, 2024
1 parent fbabacf commit 28c912c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,5 @@ FodyWeavers.xsd
/Server/fracture.d*

# AssemblyInfo.cs (it's autogenerated)
/Server/AssemblyInfo.cs
/Server/AssemblyInfo.cs
version.txt
2 changes: 1 addition & 1 deletion Server/Fracture.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
<Exec Command="dotnet husky install" StandardOutputImportance="Low" StandardErrorImportance="High" WorkingDirectory=".." />
</Target>
<Target Name="GitVersion" BeforeTargets="Build">
<Exec Command="dotnet dotnet-gitversion /updateassemblyinfo AssemblyInfo.cs /ensureassemblyinfo" StandardOutputImportance="High" StandardErrorImportance="High" />
<Exec Command="git rev-list --count HEAD > version.txt &amp;&amp; git rev-parse --abbrev-ref HEAD >> version.txt" StandardOutputImportance="High" StandardErrorImportance="High" />
</Target>
</Project>

0 comments on commit 28c912c

Please sign in to comment.