I 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 C# 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) Does a FB sample on building a Perforce managed source code exist?
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.
>> 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 do you suggest to make a fictious 'build' user? Both perforce and FinalBuilder are installed on the server.
>> 2) Assembly Info Updater action Where do I specify what to increment in the AssemblyInfoUpdater action? For example the BuildVersion ? Should I add something into the Attributes list?
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
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"
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.