web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Referencing external assemblies from plugin or custom workflow activity

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

As per my understanding if I have a plugin dll or a custom workflow activity dll that references another dll (my own class library not registered in the GAC) the only way to register such a plugin with CRM Online is after I run ILMerge to merge both the dlls in to one correct? Because CRM does not support external references in its Sandboxed mode. 

Are there any alternatives here?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    There is no other option other than merging dll's using ILMerge tool to refer your custom DLL in plugin or workflow. One other option would be writing your own web service or WCF service and consume that service  using actions in CRM. in this case you can have all your logic within the service.

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    If it is your own assembly - you would be better off adding the code to your plugin and compiling it in rather than using ILMerge.

  • Community Member Profile Picture
    on at

    Merging the Dlls is the only option.

  • cranialsurge Profile Picture
    Microsoft Employee on at

    Thanks Scott, is there a reason behind the preference? Does ILMerge have any perf. concerns?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans