Thanks for your help, managed to sort it as follows:
<ItemGroup>
<LibraryFiles Include="$(LibrariesReleaseDir)***.*"
Exclude="$(LibrariesReleaseDir)**.svn**" />
</ItemGroup>
Turns out the pattern matching basically runs on files, so you have to exclude everything BELOW the .svn
directories (.svn\**
) for MSBuild to exclude the .svn
directory itself.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…