Building with BizTalk 2009 and Newer in Team Build 2010 or 2012

Parent Previous Next

In BizTalk 2009 and newer, BizTalk solutions may be built via command-line (i.e. Team Build) using MSBuild.exe against the BizTalk solution file.  This is the model used by the out-of-the-box WF-based build template DefaultTemplate.xaml.  The Deployment Framework for BizTalk includes a (very) slightly customized version of the Team Build 2010 DefaultTemplate.xaml that you can use to quickly configure your BizTalk solution build.


Note: The BTDFDefaultTemplate.xaml template may be found in the Samples\TeamBuild folder under the Deployment Framework for BizTalk installation folder.


To build a Deployment Framework for BizTalk MSI from Team Build 2010:


1. Check the BTDFDefaultTemplate.xaml build template into your team project's BuildProcessTemplates folder

Copy the Deployment Framework's BTDFDefaultTemplate.xaml file to your local team project workspace and add it to $/MyTeamProject/BuildProcessTemplates.  Remember to add the file and check it in.


2. Create a new build definition

To begin, follow the same process that you would use to configure any other .NET solution build.  Please refer to the Team Build documentation.  Be sure to map your entire BizTalk solution source tree into the build workspace.


3. Configure the build process template (Process node) - Select build template

In the "Build process file" drop-down list, select $/MyTeamProject/BuildProcessTemplates/BTDFDefaultTemplate.xaml.  Click "Show details" to expand the build process template pane if necessary.  If BTDFDefaultTemplate.xaml is not in the list, click the "New..." button and select "Select an existing XAML file".


4. Configure the build process template (Process node) - Configure Items to Build

In the Items to Build property, click the "..." button to show the Items to Build dialog box.  Add your BizTalk solution (.sln) file to the list on the Solutions/Projects tab.  Then, add your BTDF project file (.btdfproj) to the list after the solution file.


Your Items to Build dialog should look something like this:



Next, select the Configurations tab.  Configure a single line to use the Release configuration and Any CPU platform.


Your Items to Build dialog should now look something like this:



Click OK to return to the main dialog.


5. Configure the build process template (Process node) - Configure MSBuild Platform

Change the MSBuild Platform setting to X86.  This is only necessary on x64 operating systems.


6. Verify your Process configuration

Your build definition's Process tab should now look something like this:



7. Save and test the build definition

Save the build definition, then queue a build.  The expected result is a successful build where the drop folder contains the BTDF MSI for the BizTalk solution.



Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation