Skip to content
Oleg edited this page Mar 30, 2017 · 1 revision

FSC (F# compiler) task

Parameters

Some of the settings are described below:

Name Default value Description
Target Auto Target assembly type
Out current target file Output file. Use File.make to construct instance from string.
Src Fileset.Empty Fileset, defining source files.
Ref Fileset.Empty Fileset, list of referenced assemblies
RefGlobal [] List, defining referenced framework assembly names. E.g. ["System.dll"; "System.Drawing.dll"]
TargetFramework null (auto)
CommandArgs [] Additional command-line arguments for csc.exe.

It has to be revised as it was simply copied from csc task TBD

Examples

do! Fsc {
  FscSettings with
    Src = sources
    Ref = !! "bin/FSharp.Core.dll" + "bin/nunit.framework.dll" + "bin/Xake.Core.dll"
    RefGlobal = ["mscorlib.dll"; "System.dll"; "System.Core.dll"]
    Define = ["TRACE"]
    CommandArgs = ["--optimize+"; "--warn:3"; "--warnaserror:76"; "--utf8output"]
}
Clone this wiki locally