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

Was it helpful?

Solution

I see two relevant solutions:

  1. Implement your assembly resolution handling at runtime so ilmerge'd WPF assemblies do work: http://blog.mahop.net/post/Merge-WPF-Assemblies.aspx

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

https://github.com/Fody/Costura

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top