How do I recursively exclude folders using MSBuild?

I am new to MSBuild and am having some trouble figuring out how to recursively exclude folders of a certain name.  

I know how to just exclude a certain directory like this

<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\someFolder" />

it is also no problem to recursively exclude certain file types like so

<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.csproj" />

The problem I am running into is when dealing with subversion directories.  In a bunch of the folders on the development site there are .svn folders, which are needed for using subversion.  What I am trying to do is when I build the site, exclude all folders in the site that are named .svn .  I am having some issues getting this to work, so I am hoping someone can point me in the right direction.  I tried

<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\.svn" />

but that did not do the trick.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try it with one more asterisk.
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\.svn" />

Should be:
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.svn" />
velirAuthor Commented:
Yeah I actually tried that as well and it did not work.  I have actually started doing this a different way where I do not need to exclude those directories any more.  \

Thanks for the help though!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.