FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

ILMerge Module

Contains task a task which allows to merge .NET assemblies with ILMerge.

Example


 Target.create "ILMerge" (fun _ ->
             let target = !!"./bin/Release/*.exe" |> Seq.head
             let out = "./bin" @@ (Path.GetFileName target)
             ILMerge.run
               { ILMerge.Params.Create() with DebugInfo = true
                                              TargetKind = ILMerge.TargetKind.Exe
                                              Internalize = ILMerge.InternalizeTypes.Internalize
                                              Libraries =
                                                 Seq.concat
                                                   [ !!"./bin/Release/Mono.C*.dll"
                                                     !!"./bin/Release/Newton*.dll" ]
                                              AttributeFile = target } out target)

Types

Type Description

AllowDuplicateTypes

Option type to configure ILMerge's processing of duplicate types.

InternalizeTypes

Option type to configure ILMerge's processing of internal types.

Params

Parameter type for ILMerge

TargetKind

Option type to configure ILMerge's target output.

Functions and values

Function or value Description

ILMerge.run parameters outputFile primaryAssembly

Full Usage: ILMerge.run parameters outputFile primaryAssembly

Parameters:
    parameters : Params - An ILMerge.Params value with your required settings.
    outputFile : string - Output file path for the merged assembly.
    primaryAssembly : string - The assembly you want ILMerge to consider as the primary.

Uses ILMerge to merge .NET assemblies.

parameters : Params

An ILMerge.Params value with your required settings.

outputFile : string

Output file path for the merged assembly.

primaryAssembly : string

The assembly you want ILMerge to consider as the primary.