James_AGENCY.COM

was following Douglas Rohm's post (http://dougrohm.com/articles/11.aspx) on customizing a TeamBuild to deploy the web app after the build. I don't think the AfterBuild is actually firing. I hard coded to just a simple directory without even using a parameter to try and debug but I am not having any luck. can someone take a look and see if they see something wrong and or tell me the best way to debug this problem.

Thanks,
James

< xml version="1.0" encoding="utf-8" >

<Project DefaultTargets="DesktopBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Do not edit this -->

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets" />

<ProjectExtensions>

<Description>build for continuous integration</Description>

<BuildMachine>VCICSCOA016C-D.usvci001.vci.na.vwg</BuildMachine>

</ProjectExtensions>

<PropertyGroup>

<TeamProject>FinanceSource</TeamProject>

<BuildDirectoryPath>C:\FinanceSource\Builds</BuildDirectoryPath>

<DropLocation>\\VCICSCOA016C-D.usvci001.vci.na.vwg\BuildShare</DropLocation>

<RunTest>false</RunTest>

<WorkItemFieldValues>Symptom=build break;Steps To Reproduce=Start the build using Team Build</WorkItemFieldValues>

<RunCodeAnalysis>Never</RunCodeAnalysis>

<UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems>

<WorkItemTitle>Build failure in build:</WorkItemTitle>

<DescriptionText>This work item was created by Team Build on a build failure.</DescriptionText>

<BuildlogText>The build log file is at:</BuildlogText>

<ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText>

<DeploymentFolder>C:\test</DeploymentFolder>

</PropertyGroup>

<Target Name="AfterBuild">

<Copy DestinationFiles="@(PrecompiledOutput->'C:\test\%(RecursiveDir)%(Filename)%(Extension)')" SourceFiles="@(PrecompiledOutput)" />

</Target>

<ItemGroup>

<SolutionToBuild Include="$(SolutionRoot)\FinanceSource\FinanceSource.sln" />

</ItemGroup>

<ItemGroup>

<ConfigurationToBuild Include="Debug|Mixed Platforms">

<FlavorToBuild>Debug</FlavorToBuild>

<PlatformToBuild>Mixed Platforms</PlatformToBuild>

</ConfigurationToBuild>

</ItemGroup>

</Project>



Re: Team Foundation Server - Build Automation Target AfterBuild doesn't appear to be firing

Madhuri Gummalla - MSFT

Hi,

The article (http://dougrohm.com/articles/11.aspx) details how to customize web deployment with MSBuild and doesn't directly apply to TeamBuild. "AfterBuild" is not a supported target to override in TeamBuild. Instead you should override "AfterCompile" target - please refer to this forum post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=662372&SiteID=1

Buck has a blog about customizing teambuild and which targets to override - http://blogs.msdn.com/buckh/archive/2006/08/09/team_build_extensibility.aspx.

Thanks,
Madhuri