richardszalay / helix-publishing-pipeline

Unified publishing for Sitecore Helix solutions that extends existing Visual Studio and command line workflows
MIT License
68 stars 18 forks source link

AdditionalFilesToRemoveFromTarget doesn't support all file patterns or regular expressions #75

Open rkeitel opened 4 years ago

rkeitel commented 4 years ago

It seems that AdditionalFilesToRemoveFromTarget doesn't support all file patterns (like https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/file-matching-patterns) or regular expressions. The problem is regarding to the installation of the Forms Extensions module. The configs are located in "App_Config/Include/Feature/FormsExtensions". We have a AdditionalFilesToRemoveFromTarget with <TargetPath>App_Config\Include\Feature\**</TargetPath> to remove all additional files of all feature layer projects, but want something like <TargetPath>App_Config\Include\Feature\!(FormsExtensions)\*</TargetPath> to exclude the FormsExtensions folder.

rkeitel commented 4 years ago

When I delete a VS project config in "App_Config\Include\Feature\FormsExtensions" (added for testing purpose) and change the target path to "App_Config\Include\Feature\!(FormsExtensionsTest)\*" all configs remain. But they should be deleted with this target path.

rkeitel commented 4 years ago

Metadata names don't seem to work in the target paths, too. I tried to use "App_Config\Include\Project\^(HelixModule.Filename)\**", but it doesn't work.