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

Web.config file in View/{ProjectName}/ is not copied #40

Closed luuksommers closed 5 years ago

luuksommers commented 5 years ago

When you put a web.config in Views/{ProjectName}/ it is not copied to the output. In the Sample you can reproduce by adding a web.config file like:

image

in Feature1. With version 1.0.0.0 it is working though, but when you update to the latest, it's broken.

richardszalay commented 5 years ago

Thanks for letting me know. Web.config files are ignored to prevent issues with transforms, but it should probably by only ignore files that conflict with transforms.

angelakim commented 3 years ago

Using the latest code provided the web.config files are still not being included in the Views folders. By removing OR '%(DestinationRelativePath)' == 'Views\$(ProjectConfigFileName)' from the _HelixModuleWebConfigsToExclude condition in the CollectFilesFromHelixModules target we were able to have web.config files from the Views folder included in the build artifact. Did I miss a switch that needed be set to prevent the Views web.config files from being excluded? Thank you for your assistance!