use PadLeft
This commit is contained in:
parent
06ab197be5
commit
97e3767bd7
1 changed files with 2 additions and 3 deletions
|
@ -11,8 +11,7 @@
|
|||
</Exec>
|
||||
|
||||
<PropertyGroup>
|
||||
<GitInfoCommitCount>000000$(GitInfoCommitCount)</GitInfoCommitCount>
|
||||
<GitInfoCommitCount>$(GitInfoCommitCount.Substring($(GitInfoCommitCount.get_Length())) - 6)</GitInfoCommitCount>
|
||||
<GitInfoCommitCount>$(GitInfoCommitCount.PadLeft(6,'0'))</GitInfoCommitCount>
|
||||
|
||||
<ShouldOverWriteThePropsFile
|
||||
Condition=" '$(CommitCount)' != '$(GitInfoCommitCount)' Or
|
||||
|
@ -27,7 +26,7 @@
|
|||
</Project>
|
||||
</GitCommitInfoPropsContent>
|
||||
</PropertyGroup>
|
||||
|
||||
<Error Text="PIOTR"/>
|
||||
<WriteLinesToFile File="$(GitCommitInfoProps)"
|
||||
Lines="$(GitCommitInfoPropsContent)"
|
||||
Condition=" '$(ShouldOverwriteThePropsFile)' == 'true' "
|
||||
|
|
Loading…
Reference in a new issue