git hash wird angezeigt

This commit is contained in:
Husky
2019-06-03 21:12:30 +02:00
parent b1d352b804
commit 04f779286c
4 changed files with 38 additions and 3 deletions

View File

@@ -322,13 +322,17 @@
<Name>TempCAN</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="version.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PreBuildEvent>git rev-parse HEAD &gt; "$(ProjectDir)\version.txt"</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
</Project>