Team Foundation options and GetOptionsObject

I have a couple of issues going on with regards to TFS.

First Issue:

We have VS2010 and VS2012 installed on the machine, and in the FinalBuilder options for TFS Source Control, the executable path by default is picking up c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe.  Several times now I have changed it to c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\tf.exe, but for some reason it keeps going back to the 10.0 location.  My TFS Get step fails when using the 10.0 exe, but works fine with the 11.0 exe.

Second Issue:

Since I'm in a time crunch, I figured to try and work around the issue, I would use a BeforeAction script to use GetOptionsObject to modify the directory at run time, but I cannot find the property for this for TFS.  I can't find anything in the help for the TFS properties available, and the Intellisense for the object I defined wasn't helpful either.  It looks as though it simply lists all available methods and properties defined, none of which look like they pertain to TFS.

Hi Mike

What build of FinalBuilder 7 are you using? I am not able to reproduce this with the current release build of FinalBuilder 7. Also, note that this option is a machine wide option, so to make it stick you must have admin priviledges, otherwise if you run your build under another user FinalBuilder will not see the saved options.

You can use this javascript to change the location at runtime in the BeforeAction script event :

[code]var opt = GetOptionsObject(“Team Foundation Source Control”)if (opt != null) {opt.ExecutablePath = “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\tf.exe”} [/code]

Thanks for the reply Vincent. I’m on build 2411, which I know is a few builds behind at this point. I’m not able to reproduce the issue on a consistent basis, and I haven’t seen the issue re-surface since my original post. If I get a reproducible case, I’ll submit a formal bug.

Regarding your JavaScript example, again, “ExecutablePath” doesn’t show up in the code completion, and I’m not able to find it in the help either. Am I missing something? How could I have known this is the property to use without your post?

Hi Mike

The code completion definitions for the TFS options was not implemented, I have just added so it will be in the next update. I have attached the file to this reply, drop it into your FB7\CodeCompletion folder (will need to be running explorer as admin) and it should show up.


trying again with the attachment