I am getting an error when attempting to use $FBVariables.
Here is the error message.An unhandled exception (''$FBVariables' is undefined') occured in FinalBuilder7.exe [1768]
Error Executing script : BeforeAction
Microsoft JScript runtime error
'$FBVariables' is undefined
Line : 2
Char : 3
Error in BeforeScript : JavaScript, This Action did not execute.
I am using FinalBuilder 7.0.0.787.
This error occurs in the BeforeAction javascript of the Build VS.Net Solution (Using MSBuild) action.
Here is the javascript. The error occurs on the yellow highlighted line below.function BeforeAction(Action, SkipAction) {
switch($FBVariables.GetVariable("BuildTarget")) { case "2": Action.OverrideTargetFramework = true; Action.TargetFramework = TVSDotNetTargetFx.fx20; break; case "3": Action.OverrideTargetFramework = true; Action.TargetFramework = TVSDotNetTargetFx.fx30; break;
case "3.5": Action.OverrideTargetFramework = true; Action.TargetFramework = TVSDotNetTargetFx.fx35; break; case "4": Action.OverrideTargetFramework = true; Action.TargetFramework = TVSDotNetTargetFx.fx40; break; }
}