private void WritePrebuild(IProjectConfiguration config)
{
using (Tag("prebuild"))
{
//xxx
if (config.Name == "Metro.Portal.Web")
{
using (CbTag("PurgeDirectory"))
{
Attr("path", config.WorkingDirectory() + @"\source");
}
}
using (CbTag("DeleteDirectory"))
{
Attr("path", config.WorkingDirectory());
}
var temp = config as ITempDirectory;
if (temp != null)
{
using (CbTag("CreateDirectory"))
{
Attr("path", temp.TempDirectory());
}
}
var related = config as IRelatedDirectory;
if (related != null)
{
using (CbTag("CreateDirectory"))
{
Attr("path", related.RelatedDirectory());
}
}
}
}