Friday, May 11, 2012

Crm 2011- Generating early bound classes using crmsvcutil.exe


1. Open the visual studio 2010 and click Tools->External tools
2. Now click Add button and type as following
  • Title:
crmsvcutil tool 
  •   Command:
 E:\AKILAN\CRM Training\SDK\sdk\bin\crmsvcutil.exe
                (path of crmsvcutil.exe in sdk)
  •  Arguments:
 /url:http://<serverName>/<organizationName>/XRMServices/2011/Organization.svc
 /out:Xrm.cs
/username:<username> /password:<password> /domain:<domainName>
/namespace:Xrm /serviceContextName:XrmServiceContext
(organization service url, output file name,username,password) 
  •   Initial directory:
 d:\  
(Path of the output files to be stored)
Uncheck the “Close on exit” and click ok
3. Now click tools-> crmsvcutil tool to generate early bound classes

Note: to use crmcvcutil in windows xp, windows identity foundation must be installed.
To install windows identity foundation in xp,  Copy C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation folder to to C:\Program Files\Reference Assemblies\Microsoft folder from windows server 2008/7 OS to windows xp.

Reference:
http://msdn.microsoft.com/en-in/library/gg327844.aspx

No comments:

Post a Comment