# Change VS build number before FB build

**URL:** https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652
**Category:** Discussion
**Created:** [November 24, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652 "2010-11-24T02:47:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 24, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652/1 "2010-11-24T02:47:29Z")

</div>

Our release numbering uses the svn revision number in the Major.Minor.Revision.Build scheme.

So how do I&nbsp; use FinalBuilder to automate changing this Build# in the assemblyinfo.cs file prior to building the VS project ?

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [November 24, 2010, 3:50am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652/2 "2010-11-24T03:50:36Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 24, 2010, 10:25am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652/3 "2010-11-24T10:25:11Z")

</div>

Thanks for the answer.&nbsp; 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.

&nbsp;

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 20, 2011, 5:21am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652/4 "2011-01-20T05:21:33Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [January 21, 2011, 2:36am UTC](https://www.finalbuilder.com/forums/t/change-vs-build-number-before-fb-build/1652/5 "2011-01-21T02:36:12Z")

</div>

Or use Subversion Info action after checkout to extract Last Change Revision to your FB variable.
