09 April 2009

Customizing CRM by Using the Microsoft Dynamics CRM Developer Toolkit

Thanks Microsoft CRM E2 team to provide this useful Toolkit for CRM developers.

To provide developers with the ability to create and manage on-premise CRM solutions in an integrated Visual Studio environment, the Microsoft Dynamics CRM Engineering for Enterprise (CRM E2) team initiated and sponsored the development of the Microsoft Dynamics CRM Developer Toolkit. The toolkit includes two primary components:

The CRM Explorer
The CRM Explorer complements the CRM
Solution Framework, providing the project factories required to open and build
the solution from within Visual Studio. The Explorer manifests as a window
within Visual Studio 2008 and provides direct access to CRM for creating and
editing business units, security roles, and most importantly, entities. The CRM
Explorer is linked to the solution framework which enables it to intelligently
place generated code into the relevant solution framework project.

The CRM Solution Framework
The CRM Solution Framework is a suite of Visual Studio C# projects that are coupled with CRM Entity customizations and wrapped with extensible MSBuild–based developer builds and daily builds. The Framework contains several “pre-canned” projects for the typical tasks that are required of developers when undertaking most Enterprise-level CRM projects. Several of these projects have an inheritance model that affords simple and intuitive augmentation, which can significantly reduce the time required to “jump start” development of new projects.




Software Requirements
Microsoft Dynamics CRM 4.0
Visual Studio 2008 Professional
Visual Studio Team Explorer
StyleCop 4.3 or later (full installation, including MSBuild Integration files)
.NET 3.5 SP1

Installation:
1. Install the CRM Explorer(under folder \CRM Explorer\setup.exe)
2. Install the CRM Solution Framework(under folder \CRMSolutionFrameworkTemplate\Setup.cmd)
Use command prompt to install: Setup.cmd {InstallDir} {ProjectName} {Project Long Name} {Organization Name}

Configuration:
1. Load the project UKDynamics first(Load project normally), then build the solution.
2. Load the project MyCrmSolution(Load project normally), it will referce the UKDynamics class on the step 1. *[1] *[2]
3. From Visual Studio menu bar, click [Tools], then select the [Connect to CRM Server...], give the information then click [OK] button;
4.From Visual Studio menu bar, click [View], then select the [Other Windows]>>[CRM Explorer] *[3]

*[1] If you get warnings like: The referenced component 'UKDynamics.Instrumentation' could not be found. Then you need to re-add the dll reference(UKDynamics.Instrumentation.dll) from UKDynamics\bin folder.

*[2] If you get errors like: The command ""C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil" /i "C:\Projects\MyCrmSolution\SourceCode\MyCrmSolution\Core\Configuration\bin\Debug\MyCrmSolution.Core.Configuration.dll" /f" exited with code 1. Configuration
It because all assemblies are delay-signed, you can turn off the strong-name verification on the dev environment by using the SN tool from Visual Studio 2008 Command Prompt: SN.exe -Vr *,*
then run IISRESET.exe

*[3] If you get errors when expand the item, like:
Client found response content type of 'text/html; charset=utf-8, but expected 'text/xml'. HttpException 1310
Exception message: Could not load file or assembly 'MyCrmSolution.Core.BusinessProcesses, Version=1.1.0.0, Culture=neutral, PublicKeyToken=2c1937e0898110b2' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
It is the same reason and solution with *[2]


Note: The Toolkit is based on components that were initially developed within the Dynamics CRM MCS team in the UK subsidiary. Those components have been refined over a number of UK-based global engagements.

Important: The Microsoft Dynamics CRM Developer Toolkit currently supports customization of on-premise CRM deployments only. This Toolkit and the accompanying documentation are unsupported and are being provided “as is” by the CRM E2 team to assist developers with managing and extending their on-premise Microsoft Dynamics CRM implementations.

29 comments:

Phil said...

Hi Jim,
Great to see you using the CRM Developer's Toolkit within a day of release!
You should be able to avoid the issues you mention (1-3) by executing a full Dev Build from a Visual Studio 2008 command prompt. This will build both solutions within the framework and also add a skip verifiction entry for the relevant strong names.
Regards,
Phil

David Martínez Fresneda said...

Hi,

I when build MyCRMSolution i recive two compilation errors:

The first:

Error 1 A task error has occured.
Message = Referencia a objeto no establecida como instancia de un objeto.
Data = String.Empty
RegistryHive = LocalMachine
MachineName = String.Empty
Value = WebSitePath
Key = SOFTWARE\Microsoft\MSCRM

en Microsoft.Sdc.Tasks.Registry.Get.InternalExecute()
en Microsoft.Sdc.Tasks.TaskBase.Execute() CustomWebService


And the Second:

Error 4 El comando ""C:\Archivos de programa\Microsoft SDKs\Windows\v6.0A\bin\gacutil" /i "C:\devtoolkitVM51\SourceCode\MyCRMSolution\Core\Configuration\bin\Debug\MyCRMSolution.Core.Configuration.dll" /f" terminó con el código 1.

I dont know why and how solve this problem. The gacutil.exe is ok and dll Core.Configuration exist.

Anonymous said...

喝花酒
酒店喝酒
暑假打工
寒假打工
酒店小姐
酒店兼職
禮服店
酒店經紀
酒店兼差
酒店
酒店經紀人
酒店現領
酒店經紀爆米花
酒店經紀
酒店打工
酒店上班
假日打工
台北酒店經紀
酒店pt
酒店pt
酒店應酬
粉味
酒店經紀PRETTY GIRL
酒店經濟
酒店經濟
晚上兼差

Unknown said...

I really appreciate spending some time to talk about that, I believe firmly regarding this and so really enjoy understanding more about this kind of subject.This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this. CRM Software || MLM Software in Mumbai || ERP Software || System Software in Mumbai

Muddassir said...

Thanks for sharing a best informetion
CRM Development Dubai:ERP Development Dubai

Unknown said...

Appreciate your work, very informative blog on CRM. I just wanted to share information about SAP CRM Training. Hope it helps the community here.

Unknown said...

Its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

salesforce adm 201 online training

Unknown said...

Thank for sharing the information Excellent article Cool, Looking ahead to reading a lot Bala Guntipalli Thanks for posting.

TECHENOID said...

it is vary helpful for getting this knowledge.thanks for this.
michael techenoid (http://techenoid.com)

Unknown said...

Hi dear, This is an nice and valuable post thanks for this information! Visit for shipping, freight forwarding and logistic company at
Logistics Company in Delhi

Anonymous said...

Thank you for your valuable insight on customizing CRM using Microsoft dynamics CRM Developer Toolkit. We also provide Microsoft Dynamics CRM services along with Bitrix24, Odoo ERP and Digital marketing services. Connect with us to get professional implementation assistance.

Nuncsystems said...
This comment has been removed by the author.
Nuncsystems said...

Thank you for your information regarding customizing CRM using Microsoft dynamics CRM Developer Toolkit.CRM Services

Unknown said...

Keep up the fantastic piece of work
Java Training in Bangalore

Java Training

Java Training in Hyderabad

Java Training in Chennai

Java Training in Coimbatore

Anonymous said...

Like your blog! Keep sharing.. Thankyou.
Android Training in Bangalore

Android Training

Android Online Training

Android Training in Hyderabad

Android Training in Chennai

Android Training in Coimbatore

Pushba said...

Like your blog! Keep sharing.. Thankyou.
IELTS Coaching in chennai

German Classes in Chennai

GRE Coaching Classes in Chennai

TOEFL Coaching in Chennai

spoken english classes in chennai | Communication training

ramya devi said...

Keep up the fantastic piece of work DevOps Training in Bangalore

DevOps Training

DevOps Online Training


DevOps Training in Hyderabad

DevOps Online Training in Chennai

DevOps Training in Coimbatore

jdgvks said...

Like your blog! Keep sharing.. Thankyou.
hadoop training in bangalore

oracle training in bangalore

hadoop training in acte.in/oracle-certification-training">oracle training

oracle online training

oracle training in hyderabad

hadoop training in chennai

Unknown said...

it is vary helpful for getting this knowledge.thanks for this.
michael techenoid
Data Science Training In Bangalore

Data Science Training

Data Science Online Training

Data Science Training In Hyderabad

Data Science Training In Chennai

Data Science Training In Coimbatore

sahasrit said...

Nice and informative article. amazon web services aws training in chennai

microsoft azure training in chennai

workday training in chennai

android-training-in chennai

ios training in chennai

Anonymous said...

nice article
thanks for sharing
data science course in chennai

ccna course in chennai

iot course in chennai

ethical hacking course in chennai

cyber security course in chennai

Unknown said...

Like your blog! Keep sharing.. Thankyou.
PHP Training in Chennai

PHP Online Training in Chennai
Machine Learning Training in Chennai

iOT Training in Chennai

Blockchain Training in Chennai

Open Stack Training in Chennai

technologyforall said...
This comment has been removed by the author.
Ramesh Sampangi said...

Become a data science expert by joining AI Patasala’s Data Science Course in Hyderabad, where you can learn more about data science concepts with practical Knowledge.
Data Science Course Training in Hyderabad

Anonymous said...

Thank you for your valuable insight on customizing CRM using the Microsoft Dynamics CRM Developer Toolkit. We also provide Bitrix24, Odoo ERP and Digital marketing services. Connect with us to get professional implementation assistance.

affnetz said...

I appreciate this piece of useful information, Thank You Donor-management-software

RP INFOSOFT said...

I appreciate this piece of useful information, Thank You From the Best Software Company in India.

RP INFOSOFT said...

If you really want to develop your own game, and you want to do it efficiently, then it's better to turn to specialists who will take care of the development work. Personally, I began to think about creating my own game, and now I am consulting with these developers Cooking Game Development on this issue.

Version IT said...

Your blog is very good informative and a pleasure to read.

SAP SD Training in Hyderabad