Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to add reference dll while register plugin dll.

Posted on by Microsoft Employee

Hi,

I want to register the plugin which added reference of the third party dll. I have below situation,

I have to add two dll for single plugin

1. MyPlugin.dll

2. Reference_thirdparty.dll

How to add the "Reference_thirdparty.dll" which can work for the "MyPlugin.dll(is it crm plugin dll)"?

Thanks,

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to add reference dll while register plugin dll.

    Thanks, I got it.

    but now my problem is this post "community.dynamics.com/.../240990".

    I want to create mail merge document(this contains the multiple document inside signle mail merge document) from the crm .net code. is there any way to do it.?

  • Verified answer
    M.T. Eikelenboom Profile Picture
    M.T. Eikelenboom 5,241 on at
    RE: How to add reference dll while register plugin dll.

    Hi Mohd,

    There's no good alternative to ILMerge that has the same concept of adding assemblies to CRM. It's simply not supported and I don't see Microsoft changing this in the future.

    With CRM online the best approach is to offload the custom logic you have in the DLL to an external service. You could think of a servicebus or an Azure Function. But that doesn't solve all challenges.

  • Mohd Tahir Profile Picture
    Mohd Tahir 676 on at
    RE: How to add reference dll while register plugin dll.

    Hi,

    I have tried to achieve same in past for Dynamics 365 CRM online using ILmerge but failed. ILmerge simply didn't work. Still waiting to see if there is any good alternative to achieve this.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: How to add reference dll while register plugin dll.

    Hi,

    For including reference assemblies in plugins, you could use ILMerge.

    The steps are described in the video below.

    youtube.com/watch

    Hope this helps.

  • Suggested answer
    ram r Profile Picture
    ram r on at
    RE: How to add reference dll while register plugin dll.

    Use Ilmerge

    Reference:

    nishantrana.me/.../using-ilmerge-for-plugin-in-crm

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: How to add reference dll while register plugin dll.

    Hi

    You can use ILmerge to merge your plugin assembly and the third party assembly and then register that resultant assembly (using PRT).

    Please refer:

    nicknow.net/dynamics-crm-ilmerge-dll-plugin

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: How to add reference dll while register plugin dll.

    If you're using CRM OnPremise, you should deploy the third party dll to the server\bin\assembly directory on each CRM server, and CRM should load this when needed, without any need for any additional references

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans