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.
Coordinator
Sep 6, 2013 at 3:09 PM
interesting.... i'll see if I can repro this weekend and get back to you

Mike
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:
http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.activities.extensions.wellknownenvironmentvariables(v=vs.120).aspx
Marked as answer by mikeFourie on 10/16/2013 at 11:53 AM