Run the setup which will copy all the required files to the installation directory “C:\Program Files (x86)\Xrm CI Framework”.

Automated Build Template Setup:

The first step is to copy the contents from the installation directory “C:\Program Files (x86)\Xrm CI Framework\CRM 2011\VS 2012\TFS Build Templates” and store them under source control in TFS.

Once the files are under source control, you will need configure your Build Controller to use the custom assemblies required by the template.

Follow this link to perform the two steps above. This is based on TFS online but you can use the same process for TFS on premise.

The final step is to register the Dynamics CRM 2011 Build templates with TFS. Follow this link to register the template by selecting the template from the location in source control from the previous step.

Now you should be ready to create your first Build Definition using the Dynamics CRM 2011 template.

Dynamics CRM PowerShell Cmdlets Setup

Start the PowerShell Console and run the command below.

Import-Module “C:\Program Files (x86)\Xrm CI Framework\CRM 2011\PowerShell Cmdlets\Xrm.Framework.CI.PowerShell.dll”. This will give you access to all the xRM CI Framework PowerShell Cmdlets.
If you are running this on Windows 7 or 8. You will most probably have PowerShell using .NET 2.0 and encounter some errors. To force PowerShell to use .NET follow this blog.

Create your PowerShell Script using the Cmdlets

This article demonstrated how to setup the xRM CI Framework. In the next blogs i will show you how to configure different types of builds and deployment to suite your specific scenario.

How can we handle the exporting solution in crm 2013 as while exporting solution it asks for source target version to export which when automated gets the default as 6.1 which is not being accepted by the target.

I’m running into following issues trying to run command import-module. I’m running Windows 8 and Powershell 4.0. All the depdendent assemblies are present in the correct folder. Your help is appreciated.