views:

64

answers:

2

I have not had any luck merging wpf assemblies using ILMerge.

+1  A: 

I don´t know why ILMerge has a problem with WPF Assemblies, but there is another tool to pack and merge assemblies. Take a look at .NETZ.

Jehof
I tried out .NETZ but unfortunately it doesn't seem to work with my .NET 4 WPF app. I'm using it just to merge assemblies (not compress them) but the built app just throws an exception when run.
chaiguy
+1  A: 

I would imagine that the main issue you are having when merging WPF assemblies is that the PackURIs for resources are not being changed.

If you are able to refactor your resources to a single assembly that is not merged or otherwise fix up the PackURI's in your assemblies then your merged assemblies should work.

Joe Kuemerle