I am running an action Team Foundation Latest Version Number. It succeeds, but doesn't return the changeset number in the variable. The variable is empty, although it was set to "0" before the action ran.
It has "Use Folder" set to the correct folder, and if I try another folder, the action fails. It has "Save changeset number to variable" set to the correct variable. I am logging the variable after the erroneous action runs. I have little doubt that the action is correctly configured.
I am running the command manually:
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" history * /recursive /noprompt
This results in the following output:
========= begin output ===============
Changeset User Date Comment
--------- ------------- ---------- ------------------------------------------------------------------------------------------------------------------
14 Bent 14.02.2012 Moved and renamed YourClass.cs.
13 Bent 14.02.2012 Renamed MyClass.cs to YourClass.cs.
12 Bent 14.02.2012 Added MyClass.cs.
11 Bent 13.02.2012 Added the third button, using SvnBridge.
10 Bent 07.02.2012 Deleted the DummyClass.cs again.
9 Bent 07.02.2012 Added a class to experiment with.
8 Bent 07.02.2012 Added another button and event handler.
7 Bent 07.02.2012 Added an event handler for button1.
6 Bent 07.02.2012 Added a button to the main form.
5 Bent 30.01.2012
4 Bent 30.01.2012 Check-in the Lab default template
3 Bent 30.01.2012 Checking in new Team Foundation Build Automation files.
========= end output ===============
My guess is the action parses something the wrong way, and if so then the most likely candidate is the date, since this probably changes depending on the user's preferred locale settings.