I got request from one of our clients about wired behavior of the
Team Build.
In some of the builds for Web projects the build creates a
_PublishedWebsites folder under drop location and arranges all
WebSites\WebApplications\WebService under this folder very nice.
But in other builds this folder is missing even though all web projects
compiled successfully. It just drops all compiled materials under drop
location.
As I remember it should just work Out Of The Box.
For testing I created new solution with WebApplication and WebSite.
Created simple build definition using default template and built it.

As you can see it worked !
After a little research it came out that this is behavior of the MSBuild:
When building Web Project in MSBuild if you specify an OutDir
property (for overriding the default OutDir specified in the project),
it creates the _PublishedWebsites folder under specified OutDir.
If you do not set this property (MSBuild will use Default OutDir from
the project) this folder is not created.
So, default behavior of Team Build is to override OutDir property in
order to send outputs to Binaries folder.But in this particular case
Team Build used customized templates that do not overrides OutDir…
How to do it in Team Build 2010 in the next post.
Happy Building !