Skip to content

Commit

Permalink
Change conversion of Int16 to UInt16.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebaere authored and xuzhg committed Mar 24, 2020
1 parent 9de483b commit 6f3c0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/CustomMSBuild/Versioning.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
<PropertyGroup>
<VersionStartYear Condition="'$(VersionStartYear)' == ''">2020</VersionStartYear>
<VersionDateCode>$([System.Convert]::ToInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))</VersionDateCode>
<VersionDateCode>$([System.Convert]::ToUInt16('$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))'))</VersionDateCode>
<VersionRevision Condition="'$(VersionRevision)' == '' OR '$(VersionRevision)' == '0'">$([System.Convert]::ToString($(VersionDateCode)))</VersionRevision>
</PropertyGroup>

Expand Down

0 comments on commit 6f3c0d5

Please sign in to comment.