public static void AddNewIncludedFiles(RamlIncludesManagerResult result, ProjectItem includesFolderItem, ProjectItem destFolderItem) { if (!result.IncludedFiles.Any()) return; if (includesFolderItem == null) includesFolderItem = destFolderItem.ProjectItems.AddFolder(InstallerServices.IncludesFolderName); foreach (var file in result.IncludedFiles) { includesFolderItem.ProjectItems.AddFromFile(file); new FileInfo(file).IsReadOnly = true; } }
public static void AddNewIncludedFiles(RamlIncludesManagerResult result, ProjectItem includesFolderItem, ProjectItem destFolderItem) { if (!result.IncludedFiles.Any()) { return; } if (includesFolderItem == null) { includesFolderItem = destFolderItem.ProjectItems.AddFolder(InstallerServices.IncludesFolderName); } foreach (var file in result.IncludedFiles) { includesFolderItem.ProjectItems.AddFromFile(file); } }