# My first FB project

**URL:** https://www.finalbuilder.com/forums/t/my-first-fb-project/1391
**Category:** Discussion
**Created:** [November 30, 2009, 1:54am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391 "2009-11-30T01:54:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![devdept](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@devdept](https://www.finalbuilder.com/forums/u/devdept)
#### Post date: [November 30, 2009, 1:54am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/1 "2009-11-30T01:54:59Z")

</div>

Hi All,

I&nbsp;am doing my first FB project and have a few questions (we are using Perforce SCM):

1) Is it necessary/recommended to extract the latest version of source files to a temp build folder? If yes, what we need to do?  
2) We need to increase the AssemblyInfo.cs file of a .NET&nbsp;C#&nbsp;project. What is the best action to do this?  
3) Shall we check out the AssemblyInfo.cs file before incrementing the version number of using a copy of this file in a temp folder will suffice? If yes, what we need to do?  
4)&nbsp;Does a FB sample on building a Perforce managed source code exist?

Thanks in advance,

Alberto

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<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: [November 30, 2009, 9:54am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/2 "2009-11-30T09:54:57Z")

</div>

1. The folder doesn’t have to be a temp folder, however the Perforce Sync action allows you to specify where to put the files.   
 2) Assembly Info Updater action   
 3) Yes, files need to be writable so that they can be updated. You will need to use the Perforce Open for Edit action.   
 4) No, we cannot possibly create sample projects that cover everything that people want to do with FinalBuilder, we would have no time left to actually develop the product.

---

<div class="post-metadata">

### Author: ![devdept](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@devdept](https://www.finalbuilder.com/forums/u/devdept)
#### Post date: [December 1, 2009, 2:17am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/3 "2009-12-01T02:17:19Z")

</div>

Thanks Vincent,

\>\> 1) The folder doesn't have to be a temp folder, however the Perforce Sync action allows you to specify where to put the files.   
Ok, we will use the something like c:\build as destination folder. To do a P4 sync operation on the build server&nbsp;do you suggest to make a fictious 'build' user? Both perforce and FinalBuilder are installed on the server.  
&nbsp;  
\>\> 2) Assembly Info Updater action   
Where do I&nbsp;specify what to increment in the AssemblyInfoUpdater action? For example the BuildVersion ? Should I add something into the Attributes list?

Thanks,  
  
Alberto

---

<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: [December 2, 2009, 10:42am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/4 "2009-12-02T10:42:06Z")

</div>

2) The Assembly Info Updater only knows how to update the entire value of the attribute. I have attached a demo on how to use a property set to do this

[AssemblyInfoDemo.fbp6](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/ac54d1810120fd03768bce94afc62dcc2bc6071a.fbp6) (13.029 KB)

---

<div class="post-metadata">

### Author: ![devdept](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@devdept](https://www.finalbuilder.com/forums/u/devdept)
#### Post date: [December 10, 2009, 12:34pm UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/5 "2009-12-10T12:34:45Z")

</div>

Hi Vincent,

I&nbsp;can't increment the fileBuildNumber. See the log below. For some reason only the buildNumber is updated (not the fileBuildNumber). Why?

[assembly: AssemblyVersion("3.0.521.0")]&nbsp;&nbsp;&nbsp;&nbsp;   
[assembly: AssemblyFileVersion("3.0.520.0")]

Thanks,  
  
Alberto

PropertySet define [AssemblyNumbers]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 12/10/2009  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 14:15:34:029  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 14:15:34:029  
&nbsp; Duration: 00:00:00:000

Action Messages:  
Load [C:\Build\Eyeshot3\SyncDest\Eyeshot\Main\Control\Properties\AssemblyInfo.cs] to [AssemblyNumbers]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 12/10/2009  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 14:15:34:038  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 14:15:34:064  
&nbsp; Duration: 00:00:00:026

Action Messages:  
Scanning AssemblyInfo file C:\Build\Eyeshot3\SyncDest\Eyeshot\Main\Control\Properties\AssemblyInfo.cs  
Assigning values to PropertySet AssemblyNumbers  
Setting MajorVersion to "3"  
Setting MinorVersion to "0"  
Setting BuildVersion to "520"  
Setting RevisionVersion to "0"  
Setting FileMajorVersion to "3"  
Setting FileMinorVersion to "0"  
Setting FileBuildVersion to "520"  
Setting FileRevisionVersion to "0"  
PropertySet [AssemblyNumbers] increment [BuildVersion]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 12/10/2009  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 14:15:34:064  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 14:15:34:064  
&nbsp; Duration: 00:00:00:000

Action Messages:  
Property BuildVersion is now 521  
PropertySet [AssemblyNumbers] increment [FileBuildVersion]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 12/10/2009  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 14:15:34:064  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 14:15:34:070  
&nbsp; Duration: 00:00:00:006

Action Messages:  
Property FileBuildVersion is now 521  
AssemblyInfo Updater [Files: 2]  
&nbsp;&nbsp;&nbsp; Status: Completed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: 12/10/2009  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time: 14:15:34:080  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End: 14:15:34:096  
&nbsp; Duration: 00:00:00:016

Action Messages:  
Processing File : C:\Build\Eyeshot3\SyncDest\Eyeshot\Main\Control\Properties\AssemblyInfo.cs  
Updating Assembly Version from Property Set "AssemblyNumbers"  
Processing File : C:\Build\Eyeshot3\SyncDest\Eyeshot\Main\Geometry\Properties\AssemblyInfo.cs  
Updating Assembly Version from Property Set "AssemblyNumbers"

&nbsp;

---

<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: [December 14, 2009, 2:57am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/6 "2009-12-14T02:57:39Z")

</div>

Hi   
  
 I have added another option to the actions to allow updating the AssemblyFileVersion from the property set :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/630/FB630\_1852.exe](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1852.exe)

---

<div class="post-metadata">

### Author: ![devdept](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@devdept](https://www.finalbuilder.com/forums/u/devdept)
#### Post date: [December 14, 2009, 1:26am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/7 "2009-12-14T01:26:12Z")

</div>

Thanks, already downloading…   
  
 We also don’t receive e-mail notification from the forum. Already checked the e-mail in the user profile and it’s correct.   
  
 Thanks,   
  
 Alberto

---

<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: [December 15, 2009, 10:17am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/8 "2009-12-15T10:17:19Z")

</div>

Hi Alberto   
  
 Thanks for the heads up on that, for some reason the subscriptions had stopped working, I disabled them and re-enabled them and now they appear to be working.

---

<div class="post-metadata">

### Author: ![devdept](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@devdept](https://www.finalbuilder.com/forums/u/devdept)
#### Post date: [December 18, 2009, 2:44am UTC](https://www.finalbuilder.com/forums/t/my-first-fb-project/1391/9 "2009-12-18T02:44:56Z")

</div>

Thanks Vincent,

It works perfectly. What about using this 'version number' to label the build? (we use Perforce)

Two other thing I noticed:

1) {smartassembly} action doesn't allow parameters to be used. We normally do in a batch file:  
  
"C:\Program Files (x86)\{smartassembly}\{smartassembly}.com" "c:\devDept\nextEyeshot\SmartAssembly projects\standard.{sa}proj" /build /input="c:\devDept\nextEyeshot\Eyeshot\Bin\Release\Standard\devDept.EyeshotStandard.dll" /output="c:\devDept\nextEyeshot\Eyeshot Standard\Bin\devDept.EyeshotStandard.dll"  
  
therefore we need to use the Execute Program action. ({sa}&nbsp;was purchased by&nbsp;Red-Gate, therefore should become even more popular)

2)&nbsp;On a clean Windows Server 2008 R2 installation, the running man&nbsp;of the FB&nbsp;User Interface does not run .

Alberto

&nbsp;
