# Add variable to Action field on Build VS.Net Solution

**URL:** https://www.finalbuilder.com/forums/t/add-variable-to-action-field-on-build-vs-net-solution/4014
**Category:** Feature Requests
**Created:** [March 2, 2009, 5:49am UTC](https://www.finalbuilder.com/forums/t/add-variable-to-action-field-on-build-vs-net-solution/4014 "2009-03-02T05:49:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![efridman](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@efridman](https://www.finalbuilder.com/forums/u/efridman)
#### Post date: [March 2, 2009, 5:49am UTC](https://www.finalbuilder.com/forums/t/add-variable-to-action-field-on-build-vs-net-solution/4014/1 "2009-03-02T05:49:48Z")

</div>

Hi

&nbsp;

Is it possible to add a variable to the Solution \> &nbsp;Action combo box on the "Build VS.Net Solution" action ?

Currently it allow choosing from a strict list and if I want to change the actions in several solution I need to open each solution and update the action and it taked to much time in case of large solutions.

&nbsp;

Thanks,

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [March 2, 2009, 10:51am UTC](https://www.finalbuilder.com/forums/t/add-variable-to-action-field-on-build-vs-net-solution/4014/2 "2009-03-02T10:51:24Z")

</div>

Hi Elad,   
  
 You can set the ‘Build Action’ using a variable in the ‘BeforeAction’ script event, assuming the variable is called ‘ActionVariable’ the script will be:   
  
 Action.BuildAction = ActionVariable   
  
 The possible values for the field are:   
  
 0 = Build   
 1 = Rebuild   
 2 = Clean   
 3 = Deploy   
  
 Regards,   
 Paul.
