Thursday, January 5, 2012

Build a Console Application That Connects to Microsoft Dynamics CRM 2011 Using Developer Extensions

Build a Console Application That Connects to Microsoft Dynamics CRM 2011 Using Developer Extensions

Create a New Console Application Project in Visual Studio

  1. Create a project in Visual Studio Create a new console application named “ConsoleAppWalkthrough”.
  2. Add the following references from the SDK\bin folder.
    • AntiXSSLibrary.dll
    • Microsoft.Crm.Sdk.Proxy.dll
    • Microsoft.Xrm.Client.dll
    • Microsoft.Xrm.Portal.dll
    • Microsoft.Xrm.Portal.Files.dll
    • Microsoft.Xrm.Sdk.dll
  3. Add the following references from .NET.
    • Microsoft.IdentityModel.dll
    • Microsoft.ServiceBus.dll
    • System.Data.Services.dll
    • System.Data.Services.Client.dll
    • System.Runtime.Serialization.dll

    If you do not have the Microsoft.IdentityModel.dll file, you must install Windows Identity Foundation .
  4. Set target frameworkMake sure the console project is specifying “.NET Framework 4” as the target framework and not “.NET Framework 4 Client Profile.” Check the properties of the project by selecting the Console project in Solution Explorer and clicking Alt-Enter.
The step 4 is important , so make sure the option is “.NET Framework 4” as the target framework and not “.NET Framework 4 Client Profile.”.

Thanks,
yes.sudhanshu

1 comment:

  1. Hi Shudhansu,

    Are you going to over the rest part in next blog or this is all about building console app to connect crm ?

    ReplyDelete