, , Yawar, , FAKE, , , .
Fsc , , . !! , FileIncludes, . FileIncludes , Fsc Seq.toList.
To be solid, I also convert things into relative paths (perhaps only a personal quirk).
So, here is an example of finding all *.fsfiles and compiling them with some compiler options:
Target "BuildApp" (fun _ ->
!! (srcApp @@ @"**/*.fs")
|> Seq.map toRelativePath
|> Seq.toList
|> Fsc (fun p ->
{p with
FscTarget = Exe
Platform = AnyCpu
Output = ...exe file...
OtherParams = ["--doc:" + ...xmldoc file...) ]})
)
As Jawar noted, there is a boat of other compiler options described in the tutorial .
source
share