recursion - 如何在 NuSpec 文件中递归地包含目录

我的项目中有这样的文件夹结构...

项目/文件夹1/文件夹2
-文件1
-文件2
-文件3

项目/文件夹1/文件夹3
-File4
-File5
-File6

项目/Folder1/Folder4
-File7
-File8

在 NuSpec 定义文件中,我如何告诉它包含 Folder1 下的所有内容(递归的文件夹和文件)?

我可以这样做还是需要双 ** 还是什么?

<file src="Project\Folder1\*.*" target="Project/Folder1" />

最佳答案

您可以使用通配符** documented on the NuGet web site .来自 NuGet 文档:

Using a double wildcard, **, implies a recursive directory search.

<file src="tools\**\*.*" exclude="**\*.log" />
<file src="lib\**" target="lib" />

https://stackoverflow.com/questions/24249854/

相关文章:

ios - 在命令行中清理 IOS xcode 目标

gradle - 为什么我收到 "could not find com.android.tools.

c++ - 将 CMake 与同一语言的多个编译器一起使用

c++ - 包括 .cpp 而不是 header(.h)

gcc - 如何构建 MinGW W64

ios - 如何使用 watchkit 应用程序从命令行生成 .ipa 文件

.net - 有没有办法在 NAnt 中动态加载属性文件?

c - "make clean"结果 "No rule to make target ` 干净 '"

java - 使用 Gradle 的 Application 插件添加类路径条目

android - targetSdkVersion 和项目构建目标之间的区别