Adds all the files from a folder into the project, below a specified project folder.
Namespace: Sdl.ProjectAutomation.CoreAssembly: Sdl.ProjectAutomation.Core (in Sdl.ProjectAutomation.Core.dll) Version: 1.0.0.0 (1.2.3064.0)
Syntax
C# |
---|
ProjectFile[] AddFolderWithFiles( string localFolderPath, string folderPathInProject, bool recursive ) |
Visual Basic |
---|
Function AddFolderWithFiles ( _ localFolderPath As String, _ folderPathInProject As String, _ recursive As Boolean _ ) As ProjectFile() |
Visual C++ |
---|
array<ProjectFile^>^ AddFolderWithFiles( String^ localFolderPath, String^ folderPathInProject, bool recursive ) |
Parameters
- localFolderPath
- Type: System..::..String
The absolute path of the folder containing the files to add.
- folderPathInProject
- Type: System..::..String
The folder in this project below which the files should be added. If empty the files will be in the project root folder.
- recursive
- Type: System..::..Boolean
If true, files in sub folders will also be added. The relative folder structure is preserved in the project.
Return Value
The added project files.Remarks
When adding files to a project, these files are copied into the project folder; they are not referenced in their original location.