Adding a subfolder with files from a wildcard

May 4, 2016 at 9:16 PM
Hello Oleg,

I am trying to add a subfolder and multiple files using a wildcard but no luck:

var project = new ManagedProject("ConvertDrone32Bit",
                         new Dir(@"%ProgramFiles%\InFlow Technology LLC\ConvertDrone32Bit",
                             new DirFiles(@"..\..\..\winDrone32\bin\x86\Release\*.*")),
                         new Dir("ConvertSWPDMIntegration",
                             new DirFiles(@"..\..\..\winDrone32\bin\x86\Release\ConvertSWPDMIntegration\*.*")));
Please let me know when you get a chance and thanks for your help,

May 5, 2016 at 12:37 AM
DirFiles agregates only the top level directory files to allow semi-manual aggregation with higher precision. If you need to aggregate the whole 'deep' content of the folders including sub-folders you may find Files more suitable for this. See ReleaseFolder sample:
var project =
    new Project("MyProduct",
        new Dir(@"%ProgramFiles%\My Company\My Product",
            new Files(@"..\Release Folder\Release\*.*",
                       f => !f.EndsWith(".obj") &&
                            . . .
May 5, 2016 at 12:48 AM
Thanks for your help Oleg :)