Have you ever done any custom development against Microsoft Dynamics CRM? Yes! Have you used external libraries? Yes! Are you looking the better way to reference external libraries? Need a central repository that provides a quick way to share these libraries (dlls) that can be included in development projects. It’s time to use NuGet!

What is the benefit of using NuGet?

This is an extension for Visual Studio that comes with Visual Studio 2012/2013 or newer. A lot of benefits comes from NuGet’s integration: seamless development workflow.

Extensibility…

NuGet is an open-source project, it is also easy to extend it…

Why Should Use NuGet?

The use of a these package manager for .NET development is a best practice every (Microsoft Dynamics CRM) developer should consider, and I would like to give you a properer guidence of these posts…

Packages

Microsoft Dynamics CRM assemblies and some sexy tools are also available from NuGet. The CRM SDK packages can be found by searching the NuGet website for „Microsoft.CrmSdk”. I am already using NuGet to add CRM SDK assemblies to my project. I used to add the CRM 2013 SDK using NuGet GUI, but I had to change the way I add referces? Why? CRM 2015 SDK is also available in NuGet repository, and it uses the same package name that was used by CRM 2013 SDK. I populeted the list of the packages that uses the same prefix:

  • CrmSdk.CoreAssemblies
  • CrmSdk.Deployment
  • CrmSdk.Outlook
  • CrmSdk.Workflow

How to resolve this issue? Use the Package Manager Console instead of GUI.

To open Package Manager console, use View -> Other Windows -> Package Manager Console.

Type the required package name along with the version number to add the references to project.

For example:

PM> Install-Package Microsoft.CrmSdk.CoreAssemblies -Version 6.1.1

Microsoft Dynamics CRM 2015

On the package detatails page, select any package with a version number starting with 7.x. The package title indicates that the version of the package is for CRM 2015 SDK. The targeted .NET Framework is 4.5.2.

Microsoft Dynamics CRM 2015 SDK core assemblies

Microsoft Dynamics CRM 2015 SDK deployment assembly

Microsoft Dynamics CRM 2015 SDK Xrm Tooling core assembly

Microsoft Dynamics CRM 2015 SDK Xrm Tooling Package Deployment

Microsoft Dynamics CRM 2015 SDK UII common assemblies

Microsoft Dynamics CRM 2015 SDK client and portal assemblies

Microsoft Dynamics CRM 2015 SDK core tools

Microsoft Dynamics CRM 2015 SDK Outlook client assembly

Microsoft Dynamics CRM 2015 SDK workflow assembly

Microsoft Dynamics CRM 2015 SDK Xrm Tooling WPF Controls

Microsoft Dynamics CRM 2015 SDK UII desktop assemblies

Microsoft Dynamics CRM 2015 USD core assemblies

Microsoft Dynamics CRM 2013

On the package detatails page, select any package with a version number starting with 6.x. The package title indicates that the version of the package is for CRM 2013 SDK. The targeted .NET Framework is 4. Some package with version number is 6.1.1. for CRM SDK SP1 UR1 and also targets .NET Framework 4.5.

Xrm.Framework.Core

xRM Framework Core Library for Dynamics CRM 2013

Microsoft Dynamics CRM 2013 SDK

Xrm.Framework.Test

The xRM Test Framework is a set of tools that provide you creating automated unit and integration test for your Dynamics CRM extensions.

The framework contains:

  • Test library
    • Base classes which provide the structure and facilities to create CRM test.
  • Productivity Tools
    • Custom Visual Studio Templates which allow easily create tests.
    • Visual Studio Project Templates for creating Test Projects including Unit Test Project and Integration Test Project. Download from here.

Xrm.Framework.Test.Fakes

Microsoft Dynamics CRM 2011

On the package detatails page, select any package with a version number starting with 5.x. The package title indicates that the version of the package is for CRM 2011 SDK. The targeted .NET Framework is 4.

Microsoft CRM 2011 Proxy DLL

Microsoft CRM 2011 Client DLL

Microsoft CRM 2011 SDK DLL

Microsoft CRM 2011 Deployment DLL

Microsoft CRM 2011 Workflow DLL