Skip to content

Commit

Permalink
Can't believe I genuinely forgot to do this, sorry for commit spam lol
Browse files Browse the repository at this point in the history
  • Loading branch information
TraceEntertains committed Sep 1, 2024
1 parent 2357345 commit 161ae41
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tns2tool/tns2tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@
<RuntimeIdentifiers>win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
</PropertyGroup>

<Target Name="AddShortSourceRevisionToInformationalVersion" BeforeTargets="GetAssemblyAttributes" DependsOnTargets="GetAssemblyVersion;InitializeSourceControlInformation"
Condition="'$(Configuration)' != 'FullRelease'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='FullRelease|AnyCPU'">
<Optimize>True</Optimize>
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
</PropertyGroup>

<Target Name="AddShortSourceRevisionToInformationalVersion" BeforeTargets="GetAssemblyAttributes" DependsOnTargets="GetAssemblyVersion;InitializeSourceControlInformation" Condition="'$(Configuration)' != 'FullRelease'">
<PropertyGroup>
<InformationalVersion>$(InformationalVersion)-$(SourceRevisionId.Substring(0,7))</InformationalVersion>
</PropertyGroup>
Expand Down

0 comments on commit 161ae41

Please sign in to comment.