CRM 2013 – Setting up Visual Studio with the Developer Toolkit for Microsoft Dynamics CRM

In this blog I will go through setting up the Developer Toolkit for Microsoft Dynamics CRM.

For those of you who haven’t used the CRM Developer Toolkit you don’t know what you are missing, it’s awesome and with it Microsoft made developing plugins and workflows a lot easier for CRM 2011 and CRM 2013.  The main benefits of the CRM developer toolkit is it makes it easy to create strongly typed classes and to create and deploy plugins.  Microsoft has a good page going through the benefits – but below are the highlights I think are good.

  • Easily generate strongly typed proxy classes without having to run CrmSvcUtil.e
  • Generate plug-in code so you can immediately begin to write code for business logic.
  • Edit and register plug-ins without using the Plug-in registration tool.
  • Create new web resources or extract existing web resources, add them to your solution, edit them, and deploy changes all within Visual Studio.

A YouTube video walkthrough

First step

Download SDK

You should have visual studio already installed and working


Now install the CRM DEV toolkit, be sure to check for the prerequisites like Windows Identity Foundation

Installed, Create a new project, details in the link below will explains the choices in more detail

I will choose New Visual Studio Solution Template because this will allow you to create plugins, workflows and CRM webresouces etc.  It will also ask you about Silverlight resources just press cancel if you do not want to create any silverlight projects.

setup CRM dev toolkit 1

if you have problems and have windows 8 the link below may help

When the project is created it will pop up the Connect to CRM server dialog.  This is where you put the connection details to CRM in, in my case I am connecting to a CRM 2013 trial.

To work out the CRM Discovery service name, you can go to Settings –> Customizations –> Developer Resources and it will contain the details of the Discovery service for the CRM instance you want to connect to.

setup CRM dev toolkit 3

Remove the https:// and the part /XRMServices/2011/Discovery.svc and then what is left should look something like the value below

setup CRM dev toolkit 2

I have chosen the default solution at the moment but you can change this at any time by going to Tools –> Connect to Dynamics CRM Server and here you can edit the CRM connection details

You are now ready to start creating plugins for CRM 2013, which I will go through at a later date



26 thoughts on “CRM 2013 – Setting up Visual Studio with the Developer Toolkit for Microsoft Dynamics CRM

  1. Chet Kloss March 25, 2014 / 7:41 pm

    Smart to start with a good foundation. I look forward to upcoming video tutorials for CRM development


    • Hosk March 25, 2014 / 9:49 pm

      Thanks Chet I want to make sure I go through the basics before I start doing some plugins and Javascript

      I’m glad you are behind the idea


  2. m raab March 26, 2014 / 3:41 pm

    does it install on Visual Studio 2013?


  3. BF4 guide June 7, 2014 / 2:45 pm

    I would like to thank you for the efforts you hawve put in writing this
    website. I’m hoping to view the same high-grade blog posts from you later on as well.
    In truth, your creative writing abilities has inspired me to get my very ownn site now😉


    • Hosk June 7, 2014 / 11:00 pm

      Great stuff I look forward to reading your blog posts


  4. devanik September 16, 2014 / 10:24 am

    Hey hosk’s i m facing issue while i entering crm server and port it showing proxy authentication required.(407)


  5. Nachiket March 24, 2015 / 12:07 pm

    I installed developers toolkit for visual studio 2011. I want to develop a plugin for MS CRM 2013. I am facing a problem, I chose dynamics crm -> plugin library in project selection. One window appears to connects to CRM through visual studio, where I filled my CRM discovery server name, port number, authentication details. I can log in successfully and it shows me Organization, when I choose organization, windows wont let me choose solution.

    It directly take me to the solution explorer. why?


    • Hosk March 24, 2015 / 12:46 pm

      I don’t really understand what the problem is.

      I would create a question on the CRM Forum and post a screen shot so people can understand what is going on.


      • Nachiket March 24, 2015 / 1:09 pm

        Oh yes… I will post question on forum.


  6. anu April 29, 2015 / 3:57 pm

    Hi Hosk,

    I had installed CRM Developer toolkit. How can I add it as a template in visual studio 2013?


  7. Rahul August 28, 2015 / 11:04 am


    Can I automate these “Connect to Dynamic CRM Server” using batch script. I wrote batch script for build automation process, in that we need to call devenv command to clean, build & deploy the solution that time it will ask to enter credentials to connect to CRM, so I need to automate that process by passing credentials. Please help.


    • Hosk August 28, 2015 / 11:13 am

      Once you have connected the tool once it saves you details in file. Then everytime you open Visual studio it automatically connects to the selected Dynamics CRM Server and solution.

      It shouldn’t ask you for your credentials everytime, maybe you need to make sure some of the files are editable so it can remember your login credentials.


Leave a Reply

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

You are commenting using your 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