Search code examples
monoilmerge

Is an ILMerged assembly inherently incompatible with Mono?


I've found many blog posts mentioning that ILMerge only works on Windows, and a couple that seem to suggest that ILMerged assemblies only work on Windows.

I don't care about actually running ILMerge in Mono, I'm just interested in using the merged assembly under Mono; has anyone successfully done this?

thanks!


Solution

  • I've verified that ILMerged assemblies will run under Mono. It was necessary to update the ILMerge command line option to:

    /targetplatform:"v4,C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
    

    (as described in this SO post)