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="$(SourceWebPhysic
alPath)\so
meFolder" />
it is also no problem to recursively exclude certain file types like so
<ExcludeFromBuild Include="$(SourceWebPhysic
alPath)\**
\*.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="$(SourceWebPhysic
alPath)\**
\.svn" />
but that did not do the trick.
Gabe
Start Free Trial