Our release numbering uses the svn revision number in the Major.Minor.Revision.Build scheme.
So how do I use FinalBuilder to automate changing this Build# in the assemblyinfo.cs file prior to building the VS project ?
Our release numbering uses the svn revision number in the Major.Minor.Revision.Build scheme.
So how do I use FinalBuilder to automate changing this Build# in the assemblyinfo.cs file prior to building the VS project ?
Hi,
You can use the AssemblyInfo Updater action to update your AssemblyInfo files at any time during your build process. You can either manually specify the values or use values from a pre-defined Property Set. If you are using a Property Set to store assembly information, you can make use of the Property Set Increment value action.
Otherwise, if you are using the Build VS .Net Solution action to build your project, you can update your AssemblyInfo files using this action via the .NET Version tab. This action contains an option to auto increment build numbers.
Regards,
Steve
Thanks for the answer. My question was not quite clear though - we actaully want to use the svn revision as the build part of the assembly's version info, rather than auto incrementing the build.
The way I have implemented this involves two actions and a project variable (SVNRevision)
- SVN Info - update the variable from the Subversion Last Change Revision
- Assembly Updater using the SVNRevision variable.
Put an output monitor on Subversion Checkout:
Search string Revision*
Enable wildcard
Save First Match to Variable
Extract the number with vb/ps or use Text Replace with regex.
Then use the var in assembly updater.
Or use Subversion Info action after checkout to extract Last Change Revision to your FB variable.