Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.73 KB

File metadata and controls

43 lines (31 loc) · 1.73 KB
title FormatVersion Task
description Learn about various ways the MSBuild FormatVersion tasks appends the revision number to the version number.
ms.date 11/04/2016
ms.topic reference
dev_langs
VB
CSharp
C++
author ghogen
ms.author ghogen
ms.subservice msbuild

FormatVersion task

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"

Parameters

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.

Remarks

In addition to having the parameters that are listed in the table, this task inherits parameters from the xref:Microsoft.Build.Tasks.TaskExtension class, which itself inherits from the xref:Microsoft.Build.Utilities.Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.

See also