Set BeforeTargets from Build to BeforeBuild.
TFS 2012 client compatibility issue.