CRM 2011 – How to add crmsvcutil to the External tools menu in Visual Studio

I am loving the CRM 2011 early bound functionality.  The one draw back is it you have to run the crmsvcutil quite often if you are adding/removing fields from your entities.

If you want to see a quick example of using the crmsvcutil to generate you classes check this blog out

simple crmsvcutil example

In visual studio under the tools menu there is an External Tools section where you can call exe’s, pass them some variables and run them.  crmsvcutil is a prime candidate for that.

so go to the Tools/External Tools

Click Add

Give it a cool title like – Awesome crmsvcutil tool

in the command you need to specify the location of the crmsvcutil.exe

here is mine – C:\Hosk Stuff\crm\CRM2011\sdk\bin\crmsvcutil.exe

in the arguements you put in the arguements you want to pass to crmsvcutil.exe

/url:http://crmserver:5555/crmorganisationname/xrmServices/2011/Organization.svc /out:earlyboundclasses.cs /username:hosk /password:Hoskspassword

finally you specify the initial directory which is where you want the output to go


I just put in on the c drive for now.

So there we go, it should be such a choir to build your early bound classes any more.

10 thoughts on “CRM 2011 – How to add crmsvcutil to the External tools menu in Visual Studio

  1. Kevin DeCoster September 14, 2011 / 1:58 pm

    Looks very nice, but unfortunately there is not enough space in the lengthy arguments required by CRM Online which contain extended DeviceID, Device PW information.


  2. Kevin DeCoster September 14, 2011 / 2:02 pm

    Follow-up – extended Arguments can be added when ‘Prompt for Arguments’ enabled.


  3. Mark Pitts November 9, 2011 / 6:43 pm


    I heard that SDK 5.0.7 introduces a new extension that reproduces the functionality of crmsvcutil.

    Are you familiar with it? I can’t seem to find any documentation on how to use it.

    I installed the developer toolkit, and see it listed in my VS 2010 extensions. What next?



    • Hosk November 9, 2011 / 10:34 pm

      You are correct

      When you install the developer toolkit, you have a CRM explorer, by right clicking on entities you can create a file with all the entities in, which you can then reference.


  4. AKILAN February 8, 2012 / 5:18 am

    Thank u very much..


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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.