I've added a Web Deployment Project to my solution to create a clean deployment of my web application. This works mostly as expected... i.e. builds the source & then copies the files to be deployed to a /Release folder (and excludes things like source files and my .svn folders, etc).
But now I want to explicitly exclude some other files (for the sake of simplicity lets just say one file called somefile.txt). So, I add an item group to the wdproj file as follows:
<ItemGroup>
<ExcludeFromBuild Include="somefile.txt" />
</ItemGroup>
This does indeed exclude the specific file as requested, but now the files excluded by default are no longer excluded. Specifically, now all my svn files are in the Release folder & there's also a Source folder at the same level with all the source in it.
Basically, it seems that defining the ExcludeFromBuild item group is overwriting some set of built-in defaults, rather than adding to them.
Not exactly a show stopper, but not ideal... So, does anyone know how to simply add a file to the default ExcludeFromBuild group? Or is it a case of using the defaults Vs. excluding everything by hand Vs. deleting the files you don't after a default build?