FormatVersion Task

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see FormatVersion Task on docs.microsoft.com. Appends the revision number to the version number.

  • Case #1: Input: Version=<undefined>; Revision=<don't care>; Output: OutputVersion="1.0.0.0"

  • Case #2: Input: Version="1.0.0.*" Revision="5" Output: OutputVersion="1.0.0.5"

  • Case #3: Input: Version="1.0.0.0" Revision=<don't care>; Output: OutputVersion="1.0.0.0"

The following table describes the parameters of the FormatVersion task.

ParameterDescription
FormatTypeOptional String parameter.

Specifies the format type.

- "Version" = version.
- "Path" = replace "." with "_";
OutputVersionOptional String output parameter.

Specifies the output version that includes the revision number.
RevisionOptional Int32 parameter.

Specifies the revision to append to the version.
VersionOptional String parameter.

Specifies the version number string to format.

In addition to having the parameters that are listed in the table, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.

Tasks
Task Reference

Show: