How can I construct a MSBuild ItemGroup to exclude .svn directories and all files within (recursively). I’ve got:
<ItemGroup> <LibraryFiles Include='$(LibrariesReleaseDir)\**\*.*' Exclude='.svn' /> </ItemGroup>
At the moment, but this does not exclude anything!
Thanks for your help, managed to sort it as follows:
Turns out the pattern matching basically runs on files, so you have to exclude everything BELOW the
.svndirectories (.svn\\**) for MSBuild to exclude the.svndirectory itself.