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="git-hash.txt" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent IgnoreExitCode="true">git rev-parse HEAD >../../git-hash.txt</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Target Name="BeforeBuild" BeforeTargets="Build">
|
||||
<Exec Command="git rev-parse HEAD >git-hash.txt" WorkingDirectory="$(ProjectDir)" IgnoreExitCode="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
|
|
Loading…
Reference in a new issue