# Property set values not correct

**URL:** https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415
**Category:** Bugs
**Created:** [December 29, 2011, 1:28am UTC](https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415 "2011-12-29T01:28:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nickd](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@nickd](https://www.finalbuilder.com/forums/u/nickd)
#### Post date: [December 29, 2011, 1:28am UTC](https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415/1 "2011-12-29T01:28:52Z")

</div>

We're using a property set to put the build number into our assemblies. When the build is run on the build server, the build number is passed in and everything is fine.

If the build is not specified externally, we set it to the current date and time, but this does not stay set in the property set, despite the build number variable being correct.

Attached is a simple build file showing the problem and a screenshot of part of the output.

Nick

![ScreenHunter_05_Dec._29_12.24.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/8/82dcaa1491fbf3d22a4033432652d4150a81a8f8.jpeg)

[bug.fbp7](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a8d8be7e751446287433759477f9d5d2eababd43.fbp7) (34.84 KB)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 2, 2012, 12:01pm UTC](https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415/2 "2012-01-02T12:01:26Z")

</div>

Hi Nick   
  
 I am able to reproduce the problem here, however the problem is that the fiversion fields are defined as In32, and yyyymmddhhMM will overflow the capacity of a 32 bit integer. Integer variables on the otherhand are treated as 64bit integers. I have changed the property sets to use 64bit integers, I’ll let you know when we have a build with the fix available (should be later today).

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 2, 2012, 12:07pm UTC](https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415/3 "2012-01-02T12:07:52Z")

</div>

Hmmm… scratch that answer, using 64bit ints will solve the problem in your sample project, but your code probably won’t compile. :   
  
 [http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx](http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx)   
  
 “Important   
  
 All components of the version must be integers greater than or equal to 0. Metadata restricts the major, minor, build, and revision components for an assembly to a maximum value of UInt16.MaxValue - 1. If a component exceeds this value, a compilation error occurs.”   
  
 So in essence what you are trying to do is not valid.

---

<div class="post-metadata">

### Author: ![nickd](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@nickd](https://www.finalbuilder.com/forums/u/nickd)
#### Post date: [January 4, 2012, 6:56am UTC](https://www.finalbuilder.com/forums/t/property-set-values-not-correct/3415/4 "2012-01-04T06:56:13Z")

</div>

OK Vincent, we’ll use some other number.   
  
 Thanks.   
  
 Nick
