xRM CI Framework is now available

The xRM CI Framework is a set of tools that allows you to quickly and easily implement Continuous Integration for your Dynamics CRM solutions.

The framework provides an implementation of some of the concepts detailed in the recently published Microsoft Dynamics CRM Application Lifecycle Management (ALM) white paper. The framework is also compatible with the Dynamics CRM Developer toolkit from the SDK.

The framework allows you to improve efficiency and consistency by automating your build and deployments using Team Foundation Server (TFS) 2012 and PowerShell.

Below is the list of features provided in the first release.

  1. Dynamics CRM TFS Build Template that allows you to easily create your Check-In, Continuous Integration, Nightly and Release Builds
  2. Dynamics CRM PowerShell Cmdlets to extend your build process and automate your deployments
  3. Ability to support online & offline Dynamics CRM Builds (Build from CRM instance v.s. from source control)
  4. Ability to trigger automated deployments from your TFS Builds
  5. Ability to run Integration Tests from your TFS Builds after deployment
  6. Automatic versioning of your CRM Solutions inline with your TFS Build number
  7. Ability to automate the updating of your customisations stored in source control from CRM using the solution packager
  8. Support for Dynamics CRM on-premise & online
  9. Support for TFS 2012 on-premise & online
  10. Easy to use and extensible to meet your specific scenarios

Apart from the benefits above you will also get all the benefits of using Team Foundation Server Build to improve your ALM.

There will be a series of blog articles to show you how you can use the framework to implement your specific scenarios in your projects.

In the meantime you can download a copy of the framework from the visual studio gallery.

Don’t forget to check out the setup post on how to get started.


Posted on August 13, 2013, in CRM 2011, xRM CI Framework and tagged , , , , , , , , , , . Bookmark the permalink. 12 Comments.

  1. Hi Wael,

    does it also work with TFS 2010 or do I have to upgrade TFS 2012 or 2013

    • Hi Marcel,

      PowerShell stuff you can still use with any. The build templates that are on the visual studio gallery will work with 2012 and 2013.

      Are you able to upgrade?

      • Hi Wael,
        we are going to TFS 2013 in march so I have to be patience. Great work by the way. Still have to go through all your posts to find out what we can do with the framework. Looks very promising.
        One other question… do you use the Visual Studio CRM project templates for your crm projects in your solution?

      • Hi Marcel.

        The framework supports the templates supplied in the developer toolkit. In fact it can easily do the CrmPackage deploy target as part of the build. I will be adding more posts and releasing a new version targeted specifically at TFS 2013 features around March. Hopefully developer tools will support VS 2013 by then. Hope you will find it useful 🙂

  2. Wael,

    I’m trying to use the Powershell scripts from xRM CI 2013. Our environment is on-premise CRM 2011 with ADFS/IFD.

    I’m stuck on the connection step. I also get connection errors when testing the build template. I’ve tried many variations of the connection string with no luck. Does this framework work with IFD/ADFS? Any suggestions? I really hope to use this to automate our builds!

    Import-Module “.\Xrm.Framework.CI.PowerShell.dll”
    $con = “ServiceUri=https://.com/XRMServices/2011/Organization.svc; Domain=; UserName=; Password=;”
    $response = Select-WhoAmI -ConnectionString $con -Verbose

    VERBOSE: Invoking Organization Service
    Select-WhoAmI : Object reference not set to an instance of an object.
    At line:1 char:13
    + $response = Select-WhoAmI -ConnectionString $con -Verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Select-WhoAmI], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Xrm.Framework.CI.PowerShell.SelectXrmWhoAmICommand

  1. Pingback: Building CRM Solutions with TFS Build | Wael Hamze

  2. Pingback: Automate your Dynamics CRM Builds and Deployments with PowerShell | Wael Hamze

  3. Pingback: xRM CI Framework for Dynamics CRM 2013 is now available | Wael Hamze

  4. Pingback: How to create an Automated TFS Build for Dynamics CRM Solutions? | Wael Hamze

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: