ILMergeAliases.

ILMerge(ICakeContext, FilePath, FilePath, IEnumerable<FilePath>, ILMergeSettings) Method

Summary

Merges the specified assemblies.
Namespace
Cake.Common.Tools.ILMerge
Containing Type
ILMergeAliases

Syntax

[CakeMethodAlias]
public static void ILMerge(this ICakeContext context, FilePath outputFile, FilePath primaryAssembly, IEnumerable<FilePath> assemblyPaths, ILMergeSettings settings)

Examples

var assemblyPaths = GetFiles("./**/Cake.*.dll");
ILMerge(
    "./MergedCake.exe",
    "./Cake.exe",
    assemblyPaths,
    new ILMergeSettings { Internalize = true });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
outputFile FilePath The output file.
primaryAssembly FilePath The primary assembly.
assemblyPaths IEnumerable<FilePath> The assembly paths.
settings ILMergeSettings The settings.

Return Value

Type Description
void