查看WixHelper for F#文档,我似乎可以传递一个-filter参数。我还在学习F#,我不知道这个方法是如何工作的。
https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/WiXHelper.fs#L60-60
方法
wixDir fileFilter asSubDir directoryInfo
我正在尝试修改这个调用以过滤掉*.exe (我不想包含它们)。
wixDir (fun file -> true) true (DirectoryInfo (buildDir @@ "/SetupFiles"))发布于 2015-12-03 16:02:13
您只需将(fun file -> true)更改为只有当文件没有以".exe“结尾时才返回true --我假设file是FileInfo,因此您将检查文件扩展名是否为"exe”。我还没有测试过这个,但应该是这样的:
(fun file -> not (file.Extension = ".exe"))https://stackoverflow.com/questions/34070408
复制相似问题