1
0
Fork 0

Embed last git commit hash in binary.

Dieser Commit ist enthalten in:
Starbeamrainbowlabs 2016-08-07 15:03:54 +01:00
Ursprung 741c5002c8
Commit 3e4a860280
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen

4
.gitignore vendored
Datei anzeigen

@ -1,3 +1,7 @@
# Extras
# The commit hash file generated before the build process
git-hash.txt
# ---> C Sharp
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/

Datei anzeigen

@ -46,5 +46,9 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<EmbeddedResource Include="Help.md" />
<EmbeddedResource Include="git-hash.txt" />
</ItemGroup>
</Project>
<PropertyGroup>
<PreBuildEvent IgnoreExitCode="true">git rev-parse HEAD &gt;../../git-hash.txt</PreBuildEvent>
</PropertyGroup>
</Project>