ILMerge on the Compact Framework

July, 2009

Neil Cowburn had a good article on how to do this that seems to be falling through the cracks (I’m only able to get to it via Google’s cached version). ILMerge is a command line utility that allows you to merge multiple .NET assemblies into a single assembly. You can download it here. The latest version also works on the compact framework and although I haven’t verified it, I would expect to see some application load time performance gains since assembly loading in the compact framework is expensive. Here is a sample usage of the tool for the CF. Notice how you have to specify where the version of mscorlib you are targeting is.

ILMerge.exe /lib:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE" /targetplatform:2, "C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE" /out:MyApp.exe MyApplication.exe BlueDot.Data.CF.dll
Tim's Avatar Building GitHub since 2011, programming language connoisseur, Marin resident, aspiring surfer, father of two, life partner to @ktkates—all words by me, Tim Clem.