This extension updates the version numbers found in AssemblyInfo.cs, AssemblyInfo.vb, AppManifest.xml and .csproj to the current build number.
The AssemblyFileVersion is always set in AssemblyInfo.cs and AssemblyInfo.vb files.
Version is always set in AppManifest.xml files.
The element is always set in .csproj files if present.
Task Parameters
Parameter
Description
Source Directory Path
The containing folder or full path to the files (i.e. AssemblyInfo.cs, AssemblyInfo.vb, AppManifest.xml, .csproj). If SourceDirectory is a directory then all assemblies files in the source directory will be updated. If SourceDirectory is a file then only the specified file will be updated.
Build Number
The value to set the version number to. The default value is $(Build.BuildNumber).
Version Format
A regular expression string defining the build number format. The default value is \d+\.\d+\.\d+\.\d+
Set Assembly Version
If this is true, then set the AssemblyVersion number in the Assembly files also. Do not update this number unless you fully understand it's purpose.
Set App Manifest Version
If this is true, then set the version number in all AppManifest.xml files.