文件路径中有两个星号 [英] Two asterisks in file path
问题描述
以下文件路径是什么意思?
What does the following file path mean?
$(Services_Jobs_Drop_Path)***.config
变量只是保存一些路径,没什么有趣的.我更关心的是,**
到底是什么意思.有什么想法吗?
The variable just holds some path, nothing interesting. I'm a lot more concerned, what the hell the **
mean.
Any ideas?
附言如果有帮助,则在 msbuild 脚本中使用以下路径.
P.S. The following path is used in msbuild scripts, if it helps.
推荐答案
**
这种模式常用于复制任务用于递归文件夹树遍历.基本上这意味着所有扩展名为 config
的文件都将从 $(Services_Jobs_Drop_Path)
路径的所有子目录中处理.
**
This pattern is often used in Copy Task for recursive folder tree traversal. Basically it means that all files with extension config
would be processed from the all subdirectories of $(Services_Jobs_Drop_Path)
path.
MSDN,使用通配符指定项目:
您可以使用 **、* 和 ?通配符指定一组文件作为构建的输入,而不是单独列出每个文件.
You can use the **, *, and ? wildcard characters to specify a group of files as inputs for a build instead of listing each file separately.
- ?通配符匹配单个字符.
- * 通配符匹配零个或多个字符.
- ** 通配符序列匹配部分路径.
MSDN,使用通配符指定输入
将所有 .jpg 文件包含在 Images 目录和子目录中使用以下 Include 属性:
To include all .jpg files in the Images directory and subdirectories Use the following Include attribute:
Include="图片***.jpg"
Include="Images***.jpg"
这篇关于文件路径中有两个星号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!