Open rkeitel opened 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.
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.
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.