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!
Ed Blankenship
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u
Page rendered at Thursday, September 02, 2010 6:07:03 PM (Eastern Daylight Time, UTC-04:00)
Disclaimer The opinions expressed herein are our own personal opinions and do not represent our employer's view in any way.