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

PaketTemplate Module

Contains helper functions and task which allow it to generate a paket.template file for Paket

Types

Type Description

PaketDependency

PaketDependencyVersion

PaketDependencyVersionInfo

PaketFileInfo

PaketTemplateParams

Contains the different parameters to create a paket.template file

PaketTemplateType

Functions and values

Function or value Description

DefaultPaketTemplateParams

Full Usage: DefaultPaketTemplateParams

Returns: PaketTemplateParams

The default parameters for the generation of the paket.template

Returns: PaketTemplateParams

create setParams

Full Usage: create setParams

Parameters:

Creates a paket.template file with the given filename Will fail if the file could not be written

setParams : PaketTemplateParams -> PaketTemplateParams

Function used to manipulate the default PaketTemplateParams value

Example


 Target "Create Paket Template" (fun _ ->
       PaketTemplate (fun p ->
            { p with
                TemplateFilePath = Some "./deploytemp/paket.template"
                Id = Some "My.New.Package"
                Version = Some "0.0.1-alpha"
                Authors = ["Me"; "You"; "Someone Other"]
                Files = [ Include ("./**/*.dll", "/lib/dlls")
                          Exclude "./Foo/bar.dll"
                          Include ("./*.jpg", "/images") ]
                Dependencies = [ "Paket1.FOO", AnyVersion
                                 "Paket2.BAR", GreaterOrEqual CURRENTVERSION
                                 "Paket3.BAZ", GreaterOrEqualSafe LOCKEDVERSION
                                 "Paket4.BOO", GreaterOrEqual (Version "1.2.3") ]
            }
        )
    )