Made hash embedding optional on Windows
This commit is contained in:
parent
3e4a860280
commit
6b4a968b87
1 changed files with 52 additions and 51 deletions
|
@ -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 >../../git-hash.txt</PreBuildEvent>
|
<Exec Command="git rev-parse HEAD >git-hash.txt" WorkingDirectory="$(ProjectDir)" IgnoreExitCode="true" />
|
||||||
</PropertyGroup>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue