If you use ILMerge on a WPF project, you might be in for a shock if you add a WPF window to a library used by the project. ILMerge will refuse to proceed with a message looking like this:
ILMerge.Merge: ERROR!!: Duplicate type
'XamlGeneratedNamespace.GeneratedInternalTypeHelper'
found in assembly 'YourAssembly'.
Using a free tool published by my company, it is now possible to work around this problem. Read on for details.