Merge pull request #5945 from piotrpMSFT/piotrpMSFT/infra/00prefix
Fix RHEL builds
This commit is contained in:
commit
22816d7958
1 changed files with 9 additions and 0 deletions
|
@ -10,9 +10,18 @@
|
|||
<Output TaskParameter="ConsoleOutput" PropertyName="GitInfoCommitHash" />
|
||||
</Exec>
|
||||
|
||||
<ItemGroup>
|
||||
<GitInfoCommitCountLines Include="$(GitInfoCommitCount)" />
|
||||
<GitInfoCommitHashLines Include="$(GitInfoCommitHash)" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Batching in GitInfoCommitCount and GitInfoCommitHash here ensures that the property contains only the last line of the output -->
|
||||
<GitInfoCommitCount>%(GitInfoCommitCountLines.Identity)</GitInfoCommitCount>
|
||||
<GitInfoCommitCount>$(GitInfoCommitCount.PadLeft(6,'0'))</GitInfoCommitCount>
|
||||
|
||||
<GitInfoCommitHash>%(GitInfoCommitHashLines.Identity)</GitInfoCommitHash>
|
||||
|
||||
<ShouldOverWriteThePropsFile
|
||||
Condition=" 'ForceStringComparison$(CommitCount)' != 'ForceStringComparison$(GitInfoCommitCount)' Or
|
||||
'$(CommitHash)' != '$(GitInfoCommitHash)' ">true</ShouldOverWriteThePropsFile>
|
||||
|
|
Loading…
Add table
Reference in a new issue