How to set up Dynamics CRM development environment

Source: Internet
Author: User
Tags microsoft dynamics

Recently I has been starting to learn Microsoft Dynamics CRM for implement plugin and workflow with SDK. The first thing I face is what to set up a development environment for Visual Studio. If you are using Visual Studio-or lower version, it is the very easy-to-setup SDK integrated with it. But actually, I am using Visual Studio 2013.

First thing is to download Dynamics CRM-SDK in here:https://www.microsoft.com/en-us/download/details.aspx?id=24004. And then I should the install SDK to VS2013. The installers is in Tools\developertoolkit in SDK package is only including and installers, ' crmdevelopertools_installer.ms I ' and ' Crmdevelopertoolsvs12_installer.msi '. When I tried to run Crmdevelopertoolsvs12_installer.msi this supports VS2012 in my local computer, one error tip is Showe D-Tell me-installer doesn ' t support VS2013 .... It is really shit. But whatever some reasons Microsoft have to think on, I believe that there should is someone who was already solved the Problem. Finally I got the answer from HTTP://COMMUNITY.DYNAMICS.COM/CRM/B/TSGRDCRMBLOG/ARCHIVE/2014/08/23/ microsoft-dynamics-crm-2013-toolkit-with-visual-studio-2013. But from the author's topic, I knew that he wanted to install Dynamics CRM-SDK to VS2013 and mine are Dynamics CRM 201 1 SDK. There is a little difference from my expectatioN. But I decided-try it on Dynamics CRM SDK.

1. Navigate to folder in which file ' Crmdevelopertools_installer.msi ' in cmd

2. Because I Cann ' t install this MSI file and according the information that I am aware of, there are no better the to EXTR Act MSI except using MSIEXEC. So I executed the command:

C:\CRM-SDK\SDK\TOOLS\DEVELOPERTOOLKIT\CRMDEVELOPERTOOLS_INSTALLER.MSI/QB Targetdir=c:\crm-sdk\toolkit

3. Navigate to the folder which I extracted the files. Open the Visual Studio folder and find File "Microsoft.CrmDeveloperTools.vsix"

4. Modify the extension of Microsoft.CrmDeveloperTools.vsix with. zip on order to extract it.

5. Extract it and find file "Extension.vsixmanifest" in the folder. Open it and replace installedbymsi= "true" with Installedbymsi= "false". Then find All instance all instances of-version= "[11.0,12.0]" with:version= "[11.0,12.0 ]"

6. Save it and repackage it. Run this file Microsoft.CrmDeveloperTools.vsix. It should be working.

7. Copy the files in CRM MSBuild folder from \CRM MSBUILD folder to program Files (x86) \msbuild\microsoft\crm. If Program Files (x86) \msbuild\microsoft\crm doesn ' t exist. One should be created.

8. Create a registry file with the following details in

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\visualstudio\11.0\setup\VS]"Productdir" = "C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\" "Msmdir" = "C:\\Program Files (x86) \\Common files\ \merge modules\\ "" vs7environmentlocation "=" C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\common7\\ide\\ Devenv.exe "" Environmentpath "=" C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\common7\\ide\\devenv.exe "" Environmentdirectory "=" C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\common7\\ide\\ "" Vs7commondir "=" c:\\ Program Files (x86) \\Microsoft Visual Studio 12.0\\common7\\ "Vs7commonbindir" = ""[HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\visualstudio\11.0\setup\vs\BuildNumber]"1033" = "12.0"[HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\visualstudio\11.0\setup\vs\Pro]"Productdir" = "C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\"[HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\visualstudio\11.0\setup\vs\VSTD]"Productdir" = "C:\\Program Files (x86) \\Microsoft Visual Studio 12.0\\"

And don ' t forget check all folder paths in the registry file and change them accordingly.

So far, the SDK is installed to VS2013 completely. What I should does next is to the copy XML schemas files to program Files (x86) \microsoft Visual Studio 12.0\xml\schemas\.

1. Navigator to Folder Schemas the SDK package.

2. Copy all XSD files to program Files (x86) \microsoft Visual Studio 12.0\xml\schemas\

When you edit the XML which are from Dynamics CRM solution in VS2013, the intellsense would work to give your convenience.

How to set up Dynamics CRM development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.