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)

why merge assamblies ?

(0) ShareShare
ReportReport
Posted on by

me new to crm.

why to merge assamblies ? i read one article telling for merging ILMerge is used.

why need to merge assamblies what problem is solves ? what issue you get if dont merge assamblies ?

Can i merge any assambly ? is ther a limitation ?

crm online allow uploading all types of assamlbies ?

crm onlien allows full truest and partial trust all assamblies ?

help please 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    Please read this link first

    www.codeproject.com/.../Merging-NET-assemblies-using-ILMerge

    Hope you can understand!

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    Hi,

    You need to merge assemblies if you used deployment mode database. Before in on premise environment, you can deploy plugin in your gac folder. But when on online environment it should be database. If your plugin consists of more than 1 dll (for example: you plugin.dll and you add newtonsoft because you need to deserialize or serialize value in the plugin), you need to merge this two dll into 1 dll. If you don't merge it, when you run those plugin, it will get error dll not found.

    For question number 2: Yes, you can merge any assembly as long you need it. For limitation I think now Microsoft have maximum size (around 9 - 13Mb). If your dll is bigger than that, you need to open a ticket to Microsoft to config your organization for accepting bigger dll.

    Dynamic CRM online only can run plugin sandbox. It means that lot of different compare to plugin with type non sandbox. In none, you can create a text file, retrieve shared variable across entities, etc. But in serialization all is limited because actually you run your code on CRM Ecosystem and they want to make their environment as secure as possible.

    If you have any question, just contact me.

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at

    Hi Maoun,

    1) why to merge assamblies ?

    Say, you have a .NET Project with a lot of assemblies in the project output and you don’t like it. For your personal reasons, you would like to just deliver one assembly that contains your entire project.

    There are several ways to do so like ILMerge.exe.

    Download the exe for merging the assemblies from below link,

    www.microsoft.com/.../details.aspx;id=17630

    2) why need to merge assamblies what problem is solves ?

    There is no issue if you dnt merge your assemblies

    3)Can i merge any assambly ? is ther a limitation ?

    You can merge any assemblies using IL merge

    4) crm online allow uploading all types of assamlbies ?

    Yes you can upload your assemblies in CRM that are nothing but your project dll files.

    5) crm onlien allows full truest and partial trust all assamblies ?

    Check below link for detail,

    sliong.wordpress.com/.../crm-2011-plugins-partial-trust-sandbox-vs-full-trust

    If you find it helpful, Please mark my Answer as Verified.

    Best Regards,

    Shahbaaz

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Maoum,

    why to merge assamblies ?

     

    As plugin contains only single assembly with all its reference.

    We are using IL merge mainly in the plugin , this is because sometimes we need to take reference from external assembly so in that case when we are doing sandbox plugin deployment we are generally use ILMerge.

    You may say that we dont have any option to use GAC in online deployment so to overcome the scenario we are using ILMERGE.

    why need to merge assamblies what problem is solves ? what issue you get if dont merge assamblies ?

     

    Seems  you are using external DLL there might be security challenges if you are not merge in single assembly. 

    Can i merge any assambly ? is ther a limitation ?

    Off course , its depends on the language of the code and the dll retriction.

    crm online allow uploading all types of assamlbies ?

    Its seems same answer as above questions.

    crm onlien allows full truest and partial trust all assamblies ?

    No only partial trust

    Hope this helps.

     

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at

    You need to merge assembly if you have another assembly except MS CRM reference in your assembly solution. there is two option if you are using third party assembly.

    1. Register assembly in disk and paste assemblies in C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly folder.

    2. Merge your assembly and register in database.

    In Case of online CRM you can register your assembly in database only

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