# Issue with setting the assembly version

**URL:** https://www.finalbuilder.com/forums/t/issue-with-setting-the-assembly-version/3503
**Category:** Bugs
**Created:** [September 19, 2013, 6:05am UTC](https://www.finalbuilder.com/forums/t/issue-with-setting-the-assembly-version/3503 "2013-09-19T06:05:11Z")
**Posts on this page:** 3
**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: [September 19, 2013, 6:05am UTC](https://www.finalbuilder.com/forums/t/issue-with-setting-the-assembly-version/3503/1 "2013-09-19T06:05:11Z")

</div>

Hello everyone   
  
 I’m using finalbuilder to build VS2010 solutions (using the Build [VS.Net](http://VS.Net) Solution Action) and we’re dynamically setting the Assembly Version and File Version. This is done by using Project variables. We have multiple branches for a line of code and we want them to build to the same minor version. When I run this locally, it all works great. But when this is run on Final Builder Server it’s not being set correctly.   
  
 The versions are being set as follows:   
 Minor: %AssemblyVersionMinorBuild%   
 Build: %AssemblyVersionBuild%   
 Revision: Auto Increment   
  
 I’ve attached screen shots of the local build: [IMAGE:487]   
  
 and the Server build log: [IMAGE:488]   
  
 It appears the server is using the AssemblyVersonMinor variable for the Minor version and the local is using the AssemblyVersion MinorBuild but I’ve verified that the local version of the project and the server version are the same. Any help on why the server build is pulling a different Minor Version would be greatly appreciated.   
  
 Thanks   
  
 FB Version: 7.0.0.1864   
 Win Version: 7 SP1

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 20, 2013, 6:00am UTC](https://www.finalbuilder.com/forums/t/issue-with-setting-the-assembly-version/3503/2 "2013-09-20T06:00:45Z")

</div>

Hi Tim,   
  
 What is the %AssemblyVersionMinor% used for in your scripts? It seems like it might be used differently in the server version file compared to the desktop version.   
  
 Also is there any part of your script which relies on environment. Typically what I find is that some value is being set because of a condition in the script which isn’t met on a specific machine. E.g. File being present.

---

<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: [September 23, 2013, 4:08am UTC](https://www.finalbuilder.com/forums/t/issue-with-setting-the-assembly-version/3503/3 "2013-09-23T04:08:28Z")

</div>

Hi Jason   
  
 The %AssemblyVersionMinor% is used to to tell FinalBuilder what branch of code to pull from TFS. It is used the same way in both server and Local version. We use the TFS branch name for the Minor version; since the .rel is invalid for a version, we update it and store it in %AssemblyVersionMinorBuild% which is used in the Build [VS.NEt](http://VS.NEt) solultion action to set the version.   
  
 Nothing in the script depends on enviroment, the only things that change between local workstation and server builds are the variables being used.   
  
 After messing with this for way to long, I created a new Build [VS.Net](http://VS.Net) Solution action and removed the old one. That fixed the issue, I guess something had gotten corrupted in it.   
  
 Thanks   
 Tim
