TfsVersion Properties

MSBuild Extension Pack

TfsVersion Properties MSBuild Extension Pack Help 4.0.12.0

The TfsVersion type exposes the following members.

Properties

  Name Description
Public property AssemblyVersion
Sets the AssemblyVersion. Defaults to Version if not set.
Public property Build
Gets or Sets the Build version
Public property BuildName
Sets the name of the build. For Tfs 2005 use $(BuildType), for Tfs 2008 use $(BuildDefinition)
Public property BuildNumberRegex
Sets the BuildNumberRegex to determine the verison number from the BuildNumber when using in Synced mode. Default is \d+\.\d+\.\d+\.\d+
Public property CombineBuildAndRevision
Sets whether to make the revision a combination of the Build and Revision.
Public property DateFormat
Sets the date format to use when using VersionFormat="DateTime". e.g. MMdd
Public property Delimiter
Sets the Delimiter to use in the version number. Default is .
Public property Files
Sets the files to version
Public property ForceSetVersion
Set to true to force SetVersion action to update files that do not have AssemblyVersion | AssemblyFileVersion present. Default is false. ForceSetVersion does not affect AssemblyVersion when SetAssemblyVersion is false.
Public property Major
Sets the major version
Public property Minor
Sets the minor version
Public property PaddingCount
Sets the number of padding digits to use, e.g. 4
Public property PaddingDigit
Sets the padding digit to use, e.g. 0
Public property Revision
Gets or Sets the Revision version
Public property SetAssemblyFileVersion
Set to True to set the AssemblyFileVersion when calling SetVersion. Default is true.
Public property SetAssemblyVersion
Set to True to set the AssemblyVersion when calling SetVersion. Default is false.
Public property StartDate
Sets the start date to use when using VersionFormat="Elapsed"
Public property TextEncoding
Sets the file encoding. Default is UTF8
Public property TfsBuildNumber
Sets the Tfs Build Number. Use $(BuildNumber) for Tfs 2005 and 2008.
Public property UseUtcDate
Set to True to get the elapsed calculation using UTC Date Time. Default is false
Public property Version
Gets or Sets the Version
Public property VersionFormat
Sets the Version Format. Valid VersionFormats are Elapsed, DateTime, Synced
Public property VersionTemplateFormat
Specify the format of the build number. A format for each part must be specified or left blank, e.g. "00.000.00.000", "..0000.0"
Top
See Also

Reference