This project is read-only.
Supported tokens
The following tokens are supported in version pattern parameters:
  • $(current): uses the current value. Not available in AssemblyInformationalVersionFormat.
  • $(increment): increments the current value. Not available in AssemblyInformationalVersionFormat.
  • $(date:<format>): uses the current date formatted with the specified <format>.
  • $(version): the updated AssemblyVersion value. Only available in AssemblyInformationalVersionFormat.
  • $(fileversion): the updated AssemblyFileVersion value. Only available in AssemblyInformationalVersionFormat.
  • An integer: forces the value to the specified value.

UpdateAssemblyInfoFile Activity
The UpdateAssemblyInfoFile activity updates the AssemblyVersion and AssemblyFileVersion attributes values for a single AssemblyInfo file. It has the following parameters:

Name Type Description
FilePath Input The path to the AssemblyInfo file to update.
AssemblyInfoFormat Input The AssemblyVersion pattern to use for updating the specified file. Leave null or empty to not update.
AssemblyVersionInfoFormat Input The AssemblyFileVersion pattern to use for updating the specified file. Leave null or empty to not update.
AssemblyInformationalVersionFormat Input The AssemblyInformationalVersion pattern to use for updating the specified file. Leave null or empty to not update.
AssemblyVersion Output The updated AssemblyVersion value as a System.Version.
AssemblyFileVersion Output The updated AssemblyFileVersion value as a System.Version.
AssemblyInformationalVersion Output The updated AssemblyInformationalVersion value as a String.


If an attribute is not found the corresponding output parameter is empty. If an attribute is not updated (null or empty format) but found, it's corresponding output parameter is the value in the file.

UpdateAssemblyInfo Activity
The UpdateAssemblyInfo activity updates the AssemblyVersion and AssemblyFileVersion attributes values for a list of AssemblyInfo files. It has the following parameters:

Name Type Description
AssemblyInfoFiles Input A list of AssemblyInfo files to update.
AssemblyInfoFormat Input The AssemblyVersion pattern to use for updating all the specified files. Leave null or empty to not update.
AssemblyInformationalVersionFormat Input The AssemblyInformationalVersion pattern to use for updating the specified files. Leave null or empty to not update.
AssemblyInformationalVersion Output The updated AssemblyInformationalVersion value as a String.
MaxAssemblyVersion Output The max updated AssemblyVersion value as a System.Version.
MaxAssemblyFileVersion Output The max updated AssemblyFileVersion value as a System.Version.
MaxAssemblyInformationalVersion Output The max updated AssemblyInformationalVersion value as a String.


By default the output parameters has a value of "0.0.0.0". If no file were specified a warning is added to the build log. A log is also added for each successful update indicating the file.

Last edited Feb 11, 2011 at 5:20 PM by GuillaumeRouchon, version 2

Comments

No comments yet.