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