Installing the xRM CI Framework
In this post I will provide you with the details on how to setup the xRM CI Framework.
The process is simple and easy. After this stage you will be ready to create your automated builds and deployments.
Framework Download & Installation:
- The first step is to download the setup files from the visual studio gallery.
- 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.
Posted on August 12, 2013, in CRM 2011, xRM CI Framework and tagged Automated Builds, Automated Deployments, CI, Continuous Integraiton, crm 2011, Dynamics CRM, PowerShell, TFS, TFS Online, visual studio 2012. Bookmark the permalink. 4 Comments.