Updating Prerelease Deployment Project Files for Team Build Support

Parent Previous Next

Native support for Team Build was added after publication of the final release candidate of Deployment Framework for BizTalk 5.0.  Deployment project files created in any version of the Deployment Framework prior to V5.0 RTW require a few modifications:


1. Update the DefaultTargets attribute

In the Project element, change the DefaultTargets attribute value to Installer.


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


2. Update the OutputPath elements in the default Debug and Release configuration PropertyGroup's

In the two PropertyGroup elements that are conditional on the Debug and Release configurations, replace the OutputPath element with two lines that are conditional on the property TeamBuildOutDir.  The following example includes the new OutputPath elements.  You may already have other elements mixed in with them, so just replace your two existing OutputPath elements with the four shown below.


 <PropertyGroup Condition="'$(Configuration)' == 'Debug'">

   <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>

   <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>

   <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>

   <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->

   <DeployPDBsToGac>false</DeployPDBsToGac>

 </PropertyGroup>

 <PropertyGroup Condition="'$(Configuration)' == 'Release'">

   <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>

   <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>

   <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>

   <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->

   <DeployPDBsToGac>false</DeployPDBsToGac>

 </PropertyGroup>


For further reference, the Deployment Framework for BizTalk sample applications already include the correct configuration for Team Build.



Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator