TFS Build template is a workflow that defines the flow and steps of a TFS Build. This is normally implemented using Windows Workflow Foundation. TFS Build allows you provide custom build templates to suite your needs.

The Dynamics CRM 2013 TFS build template extends the Default TFS Build template to provide the extra steps required to Build CRM Solutions and implement Continuous Integration. This also provides the release capabilities provided by the Release Management Template.

Pre-requisites:

  1. You need to have Team Foundation Server 2013 on-premise or in the cloud
  2. You need to have Visual Studio 2013 to manage your builds, your CRM solutions can still be written in Visual Studio 2012
  3. You need have a server with a Build Controller and at least one Build Agent
    • If you are using Visual Studio Online you will be able to use the Hosted Build Controller and Agents
      • You can use your Own Build Controller on a cloud or on-premise hosted server and attach it to your TFS Online instance
    • If you are using TFS on-premise, you can use your existing Build Controller and Agents

Getting Started

Before you can start using the custom TFS Build Template, You will need to do a few quick configuration steps.

  1. The first step is to check-in the xRM CI Framework you have downloaded into the TFS source control. Make sure all the assemblies are checked in to as TFS sometimes will exclude these by default.
    • Below is the main framework folder
      image_thumb
    • Below is the folder containing the build template and dependent custom assemblies
      image_thumb[3]
    • Below are the assemblies required by the build template
      image_thumb[1]
    • Below are the PowerShell extensions and scripts used by the build template
      image_thumb[2]
    • Now you should have the required components in source control. Note the contents might change over time but structure should remain the same.
  2. The template requires several custom assemblies during execution. You will need to configure your build control to point to the xRM CI Framework “CustomAssemblies” folder.
    • Select the Builds from the main team explorer view
      image_thumb[4]
    • Now go to “Manage Build Controllers…”
      image_thumb[5]
    • Select the controller you want to use for your CRM Builds and click “Properties”
      image_thumb[6]
    • Now you need to point the controller to the xRM CI Framework “CustomAssemblies” folder in source control.
      image_thumb[10]
      image_thumb[11]
      image_thumb[12]
    • Make sure you confirm your selection and now you should be setup

Last edited Aug 5, 2014 at 7:21 PM by waelhamze, version 5