The TfsVersion type exposes the following members.

Constructors

  NameDescription
TfsVersion

Properties

  NameDescription
AssemblyVersion
Sets the AssemblyVersion. Defaults to Version if not set.
Build
Gets or Sets the Build version
BuildName
Sets the name of the build. For Tfs 2005 use $(BuildType), for Tfs 2008 use $(BuildDefinition)
CombineBuildAndRevision
Sets whether to make the revision a combination of the Build and Revision.
DateFormat
Sets the date format to use when using VersionFormat="DateTime". e.g. MMdd
Delimiter
Sets the Delimiter to use in the version number. Default is .
Files
Sets the files to version
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.
Major
Sets the major version
Minor
Sets the minor version
PaddingCount
Sets the number of padding digits to use, e.g. 4
PaddingDigit
Sets the padding digit to use, e.g. 0
Revision
Gets or Sets the Revision version
SetAssemblyFileVersion
Set to True to set the AssemblyFileVersion when calling SetVersion. Default is true.
SetAssemblyVersion
Set to True to set the AssemblyVersion when calling SetVersion. Default is false.
StartDate
Sets the start date to use when using VersionFormat="Elapsed"
TaskAction (Overrides BaseTask..::.TaskAction.)
TextEncoding
Sets the file encoding. Default is UTF8
TfsBuildNumber
Sets the Tfs Build Number. Use $(BuildNumber) for Tfs 2005 and 2008.
UseUtcDate
Set to True to get the elapsed calculation using UTC Date Time. Default is false
Version
Gets or Sets the Version
VersionFormat
Sets the Version Format. Valid VersionFormats are Elapsed, DateTime
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"

See Also