使用FindMatchingFiles工作流程活动的MatchPattern属性 [英] Use MatchPattern property of FindMatchingFiles workflow activity
本文介绍了使用FindMatchingFiles工作流程活动的MatchPattern属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用TFS 2010 Team Build自定义构建过程模板的默认工作流程。有一个名为 FindMatchingFiles
的活动,该活动允许使用 MatchPattern
属性中定义的模式搜索特定文件。如果我仅指定一个文件扩展名,它将起作用。示例:
I'm customizing the default workflow of build process template using TFS 2010 Team Build. There is an activity named FindMatchingFiles
allows to search for specific files with a pattern defined in MatchPattern
property. It works if I only specify one file extension. Example:
String.Format("{0}\\**\\\*.msi", SourcesDirectory)
但是我也想包含* .exe。尝试以下模式,但不起作用:
But I would like to include *.exe as well. Trying following pattern but it doesn't work:
String.Format("{0}\\**\\\*.(msi|exe)", SourcesDirectory)
任何人都可以向我展示如何
Anyone could show me how to correct it?
推荐答案
您可以使用 String.Format( {0} \ ** \ \ * .msi; {0} \ ** \ * .exe,SourcesDirectory)
这篇关于使用FindMatchingFiles工作流程活动的MatchPattern属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文