At my current project we have a lot of different config files. We have multiple:
We’ve set this up with SlowCheetah, which is an awesome tool to easily transform config files based on the build we have selected.
When I first installed it, I happily added all my transforms to the files above, and I built. My Visual Studio AfterBuild step copies and pastes all my stuff across to my installed Sitecore instance, and I browsed to it. That’s when I got the following error:
Turns out, in my eagerness to deploy this, I forgot I actually copied ALL config files across to my local path, not just the one I’m building for. It seems that Sitecore does not like having multiple files like that in the Include folder. When I deleted those files, it was fixed.
After that, I removed the transforms from the AfterBuild step and now it’s happily building away.