Is there any free ilmerge like tool out there which can merge wpf assemblies? [closed]
-
27-09-2019 - |
Question
I'm looking for a free tool to merge all of my wpf application's assemblies into a single assembly. Usually, I use ILMerge, but unfortunately, it does not support merging WPF assemblies. Are there any tools out there which can achieve that?
A commercial tool is not an option for me because the application is an open source project.
Best Regards,
Oliver Hanappi
Solution
I see two relevant solutions:
Implement your assembly resolution handling at runtime so ilmerge'd WPF assemblies do work: http://blog.mahop.net/post/Merge-WPF-Assemblies.aspx
Use a product that supports it out of the box (Commercial, so not an option in the case below): Merging dlls into a single .exe with wpf
OTHER TIPS
Costura can do this.
It embeds references as resources in the target assembly. Then at run time intercepts assembly load events and serves up the resource.