Using ILMerge for Syncfusion dlls to combine into one dll

Hi, This question has been asked in 2008 on these forums. I want to know if there is any update on the procedure that can be followed to merge syncfusion dlls into one dll and have it work. Is this possible? Can we do that but have to the the licensing dll seperate? 

Thank you


2 Replies

JM Jeyaseelan M Syncfusion Team June 16, 2022 11:48 AM UTC

Hi Moustafa,


Sorry for the delay.


We're testing ILMerge with the most recent Syncfusion assemblies, and we are facing few exceptions. We will validate further and let you know whether it is possible to use Syncfusion assemblies with ILMerge.


We appreciate your patience till then.


Regards,

Jeyaseelan M



JM Jeyaseelan M Syncfusion Team July 19, 2022 12:29 PM UTC

Hi Moustafa,


It’s possible to use the latest Syncfusion assemblies with ILMerge.


Using IL Merge, we can combine all the Syncfusion assemblies into a single assembly. However, all reference assemblies must be present in the folder; otherwise, an Unresolved Assembly Reference Not Allowed exception will be raised.


We have used IL Merge exe from the NuGet package below.


NuGet Link: https://www.nuget.org/packages/ilmerge/3.0.29


Argument For Merging: ILMerge.exe /log:OutputLog.txt /out:Syncfusion.MergedAssembly.dll "C:\Users\Syncfusion\Desktop\ 20.2.0.36\Licensed\4.0\Syncfusion.*.dll" /wildcards /allowDup


Please see the link below for an example Syncfusion PDF project.


https://s3.amazonaws.com/files2.syncfusion.com/Installs/Support/175613/CreatePDFUsingMergedAssemblyTrial.zip


By referring the merged assembly, we can access the Syncfusion namespaces and use the assemblies.



Let us know if have any concerns.


Regards,

Jeyaseelan M


Loader.
Up arrow icon