Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

ILMerge is a utility from Microsoft Research for merging multiple .NET assemblies into a single .NET assembly.

desc "Merge A & B into the Master assembly"
ilmerge :merge => [:build] do |cmd|
  cmd.assemblies = FileList["wildcard/path/to/assemblies"]
  cmd.out = "path/to/output/assembly"
end

Required Parameters

Assemblies

A list of all input assemblies, including path, as an array or Rake FileList.

assemblies = FileList["wildcard/path/to/assemblies"]

Out

The name of the merged assembly, including path.

out = "path/to/output/assembly"

Optional Parameters

Target Platform

Set the target platform, we don't know the full list of allowed values.

target_platform = "v4"

Guidance

Wildcards

Ilmerge supports it's own wildcard matching if you provide the /wildcard switch and a glob-pattern in one of the assemblies. However, we don't support that switch yet, so use Rake FileList, which automatically expand to full paths (working around the need to support the wildcard switch, for now).

assembiles = FileList["wildcard/path/to/assemblies"]
Clone this wiki locally