The sum updater class performs a mathematical calculation based on a left-hand side and a right-hand side, both of which can contain any number of sub elements. In addition to the left and right parts of the calculation, a mathematical operator must be provided.

    <sum operator="divide">
        <time-since date="midnight" unit="seconds" />
      <right><fixed value="2" /></right>

The example shown above will take the number of seconds since midnight and divide it by two. The resulting value will be the build component of the version number. This is the same calculation that Visual Studio uses to automate revision numbers.


Operator Description
add Uses the addition operator to add the two values together.
subtract Uses the subtraction operator to subtract one value from the other.
multiply Uses the multiplication operator to multiply one value by the other.
divide Uses the division operator to divide one value by the other.

Last edited Jan 3, 2013 at 7:54 AM by trwolfe, version 1


No comments yet.