<p>How can I construct a MSBuild ItemGroup to exclude .svn directories and all files within (recursively). I've got:</p>

<pre><code>&lt;ItemGroup&gt; 
     &lt;LibraryFiles Include="$(LibrariesReleaseDir)\**\*.*" Exclude=".svn" /&gt;
&lt;/ItemGroup&gt;
</code></pre>

<p>At the moment, but this does not exclude anything!</p>

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.