Hello community,
is there a way to control the build action property of a Visual Studio .NET Action via variables? I found an older thread in this forum in which it was supposed to be implemented in future versions of FinalBuilder.
Regards
René
Hi Rene,
The following build exposes the property as BuildAction. You can use this to either set the property value in the property inspector or through scripting. Like
Action.BuildAction = baBuild;
http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_1826.exe
Hello Jason,
thanks for your reply! I’m not sure what you mean by the property inspector.
Regards,
René
Open the project you wish to update with the FinalBuilder IDE. Next select the action to update, and then open the View menu. From this select the Action Property Tab. This will open the property inspector on the left hand side (by default). This will give you access to all properties for the action in question. Including the BuildAction property. You may need to scroll down in the list.
Heyho Jason,
thanks again. I found the property on the Action Property Tab. But it doesn’t fit for me. What I’m doing is the following. I ask the user whether he wants to do just an incremental build for a solution or if he wants to do a full rebuild. I do this via the Multi Question Action. I then set a project variable based on what the user selected. Now I want to this varibale’s value in the Build VS.Net Solution Action. It seems to me I can only achieve this via scripting. There seems to be no way to directly set BuildAction property of the Build VS.Net Solution Action. Or am I missing something here?
Regards,
René
Yes scripting is the way to achieve what your looking for. If the property is a checkbox, or drop down there is currently no way to use a variable to set the property other than scripting.