Automatically generate Crm Service Context through CRM Developer Tools

I love the CRM Developer Tools that come with the CRM 2013 SDK, even though it has its shortcomings. One of the areas where it is lacking, is the missing Crm Service Context when generating wrappers. To fix this, add a file named CrmSvcUtil.exe.config to the folder C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Dynamics CRM 2011 Developer Tools\1.0 The file should contain the following, which will ensure the service context is generated:

<?xml version="1.0"?>
<configuration>
    <appSettings>
        <add key="servicecontextname" value="CrmServiceContext"/>
    </appSettings>
</configuration>
Advertisements

Leave a Reply

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

WordPress.com Logo

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