Made hash embedding optional on Windows

This commit is contained in:
Starbeamrainbowlabs 2016-08-08 09:01:16 +01:00
parent 3e4a860280
commit 6b4a968b87

View file

@ -48,7 +48,8 @@
<EmbeddedResource Include="Help.md" />
<EmbeddedResource Include="git-hash.txt" />
</ItemGroup>
<PropertyGroup>
<PreBuildEvent IgnoreExitCode="true">git rev-parse HEAD &gt;../../git-hash.txt</PreBuildEvent>
</PropertyGroup>
<Target Name="BeforeBuild" BeforeTargets="Build">
<Exec Command="git rev-parse HEAD &gt;git-hash.txt" WorkingDirectory="$(ProjectDir)" IgnoreExitCode="true" />
</Target>
</Project>