July 6, 2010 7:33 PM
by Ed Blankenship
One of my favorite new build workflow activities is the FindingMatchingFiles activity. It’s an activity that is provided out of the box for use during Team Build that returns an IEnumerable<string> of all of the files that match a particular wild card string.
It’s available in the toolbox under the Team Foundation Build Activities tab. The full name of the activity is: Microsoft.TeamFoundation.Build.Workflow.Activities.FindMatchingFiles.
Here is a typical usage if you are looking for all .CSS files in a particular folder.
The problem I was attempting to solve is how to find all of the files recursively in all of the subfolders as well. All I had to do was change the match pattern argument to include a “**” in front of the original pattern and it worked like a charm!
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u
Hi! I am Ed Blankenship and a Product Manager at Microsoft for Visual Studio Online, Team Foundation Server, and the Application Lifecycle Management family of tools. I am an author of a few books, former Microsoft MVP of the Year, and a former ALM consultant.
Powered by Azure Websites
Site design by Jeremy Kratz