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

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

v5.fake.build

Fsc Module

Contains tasks to compiles F# source file with the FSharp.Compiler.Service.

Types

Type Description

Access

Used to set the Accessibility of an embedded or linked resource

BuildException

An exception type to signal build errors.

CompilerFunc

Type signature for a Compiler Function

DebugType

Specify debugging type: full, pdbonly. (full is the default and enables attaching a debugger to a running program).

FscParam

The F# compiler parameters

FscResultMessage

Common Error Result type for tracing errors

Optimization

Optimization options that can be disabled or enabled selectively by listing them with the optimize compiler flag

PlatformType

Limit which platforms the compiled code can run on: x86, Itanium, x64, anycpu32bitpreferred, or anycpu. The default is anycpu.

Profile

Specify target framework profile of this assembly. Valid values are mscorlib or netcore. Default - mscorlib

ResourceInfo

Specified path of a managed resource with an optional name alias and accessibility flag resource info format is <file>[,<stringname>[,public|private]] e.g. resource.dat,rezName,public

TargetType

The target compilation type

Functions and values

Function or value Description

Fsc.compile fscParams inputFiles

Full Usage: Fsc.compile fscParams inputFiles

Parameters:
    fscParams : FscParam list
    inputFiles : string list - The F# input files.

Compiles one or more F# source files with the specified parameters.

fscParams : FscParam list
inputFiles : string list

The F# input files.

Example


 ["file1.fs"; "file2.fs"]
     |> compile [Out ""
                 Target Exe
                 Platform AnyCpu
                 References []
                 Debug false
             ]

Fsc.compileExternal fscTool fscParams inputFiles

Full Usage: Fsc.compileExternal fscTool fscParams inputFiles

Parameters:
    fscTool : string - Path to an existing fsc.exe executable
    fscParams : FscParam list
    inputFiles : string list - The F# input files.

Compiles one or more F# source files with the specified parameters using an existing fsc.exe installed on the system

fscTool : string

Path to an existing fsc.exe executable

fscParams : FscParam list
inputFiles : string list

The F# input files.

Example


 ["file1.fs"; "file2.fs"]
     |> compileExternal "path/to/fsc.exe"
                 [Out ""
                 Target Exe
                 Platform AnyCpu
                 References []
                 Debug false
             ]

Fsc.compileExternalWithResult fscTool fscParams inputFiles

Full Usage: Fsc.compileExternalWithResult fscTool fscParams inputFiles

Parameters:
    fscTool : string - Path to an existing fsc.exe executable
    fscParams : FscParam list
    inputFiles : string list - The F# input files.

Returns: int

Compiles the given F# source files with the specified parameters.

fscTool : string

Path to an existing fsc.exe executable

fscParams : FscParam list
inputFiles : string list

The F# input files.

Returns: int
Example


 ["file1.fs"; "file2.fs"]
     |> compileExternalWithResult "path/to/fsc.exe"
                 [Out ""
                 Target Exe
                 Platform AnyCpu
                 References []
                 Debug false
             ]

Fsc.compileWithResult fscParams inputFiles

Full Usage: Fsc.compileWithResult fscParams inputFiles

Parameters:
    fscParams : FscParam list
    inputFiles : string list - The F# input files.

Returns: int

Compiles the given F# source files with the specified parameters.

fscParams : FscParam list
inputFiles : string list

The F# input files.

Returns: int
Example


 ["file1.fs"; "file2.fs"]
     |> compileWithResult [Out ""
                 Target Exe
                 Platform AnyCpu
                 References []
                 Debug false
             ]

Fsc.resourceStr (arg1, arg2, arg3)

Full Usage: Fsc.resourceStr (arg1, arg2, arg3)

Parameters:
    arg0 : string
    arg1 : string option
    arg2 : Access option

Returns: string
arg0 : string
arg1 : string option
arg2 : Access option
Returns: string