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

Notifications

Announcements

No record found.

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

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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans