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

Community site session details

Session Id :

Using ILMerge for Plugin in CRM

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

If we make use of external assembly in our Plugin (sandboxed) we will get the exception of FileNotFound.

So here we can make use of ILMerge which basically merges the assembly referenced and the plugin into a single assembly.

Install the following NuGet Package.

This adds the following files in our Plugin project.

We need to set Copy Local as true for all our referenced assembly that we want to merge with our plugin.

We need to set Copy Local as false for all other assemblies that we do not want to be merged with plugin.

Just build the project and we are done.

The assembly inside Reflector: –

Hope it helps.


Filed under: CRM, CRM 2013, CRM 2015, CRM 2016, CRM 2016 Update 1, Dynamics 365, Microsoft Dynamics 365, Microsoft Dynamics CRM Tagged: CRM, CRM 2015, CRM 2016 Update 1, Microsoft Dynamics 365, Microsoft Dynamics CRM

This was originally posted here.

Comments

*This post is locked for comments