FormatVersion Task


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

Appends the revision number to the version number.

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

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

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


The following table describes the parameters of the FormatVersion task.

Parameter Description
FormatType Optional String parameter.

Specifies the format type.

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

Specifies the output version that includes the revision number.
Revision Optional Int32 parameter.

Specifies the revision to append to the version.
Version Optional 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.

See Also

Task Reference