Since vcbuild.exe sometimes failes when used with multiple CPUs in a TFS-Buildserver environment, we have to adjust the setting "Max CPUs" in every VS.Net action. Since we have about 30-40 actions in each project (8-10 solutions in 4 configurations), I would be happier if I could multiselect all actions and change the setting only once.
Regards, Matthias
Hi Matthias,
You can use a FinalBuilder variable to set the MaxCPUs value before the action is executed. To do this will need to add the following line to the ‘BeforeAction’ script event of each ‘VS.Net Solution’ Action:
Action.MaxCPUs = [your_variable];
You need to replace [your_variable] with the variable that contains the value you wish to use.
Hope this makes it easier.
Paul.
Hi Paul,
thanks for your answer. Unfortunately it seems that there was a misunderstanding.
Once the project is defined, the setting does not change anymore; IMHO there is no need for a variable.
It's just that during the definition of the project, we must double click each VS.Net action and change the value.
Since we have a lot of these actions in each project, life would be easier if we could mulitselect all VS.Net actions of the project, double click on the selection, change the setting, click OK and that's it. Without mulitselect we must open each action separately and change the value.
It's not a big thing for us, and it has to be done only once per project; but it would be nice to have a possibility to change a setting in all selected actions at once.
Regards, Matthias