use PadLeft

This commit is contained in:
Unknown 2017-03-07 11:04:18 -08:00
parent 06ab197be5
commit 97e3767bd7

View file

@ -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 @@
&lt;/Project&gt;
</GitCommitInfoPropsContent>
</PropertyGroup>
<Error Text="PIOTR"/>
<WriteLinesToFile File="$(GitCommitInfoProps)"
Lines="$(GitCommitInfoPropsContent)"
Condition=" '$(ShouldOverwriteThePropsFile)' == 'true' "