Question about using TfsVersion (per the tutorial)

Sep 6, 2013 at 1:22 PM
So in the tutorial, it is using a Workflow from Tfs 2012. I was trying to get it to work in Tfs 2013, but had a problem with the FindMatchingFiles activity.

The expression, String.Format("{0}**\AssemblyInfo.*", SourcesDirectory)

That failed, saying that 'SourcesDirectory' is invalid. I can't seem to find an alternative for retrieving the current sources directory in tfs 2013.
Sep 6, 2013 at 3:09 PM
interesting.... i'll see if I can repro this weekend and get back to you

Sep 9, 2013 at 12:11 PM
And the build process template I am using is based of TfvsTemplate.12.xaml.
Sep 10, 2013 at 8:14 PM
You now need to use the GetEnvironmentVariable<T> activity in order to get the SourcesDirectory.

Here is the reference to the available environment variables you can retrieve with that activity:
Marked as answer by mikeFourie on 10/16/2013 at 11:53 AM