/
build.fsx
39 lines (32 loc) · 856 Bytes
/
build.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.DotNet
open Fake.IO
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
Target.create "Clean" (fun _ ->
!! "src/**/bin"
++ "src/**/obj"
|> Shell.cleanDirs
)
Target.create "Build" (fun _ ->
!! "src/**/*.*proj"
-- "src/CodeQuery/CodeQuery.fsproj" // this project is broken at the moment.
|> Seq.iter (DotNet.build id)
)
Target.create "AnalyzeExceptions" (fun _ ->
"src/AnalyzeExceptions/AnalyzeExceptions.fsproj"
|> DotNet.publish (fun c ->
{ c with
OutputPath = Some (__SOURCE_DIRECTORY__ @@ "build" @@ "AnalyzeExceptions")
})
)
Target.create "All" ignore
"Clean"
==> "Build"
==> "All"
"Clean"
==> "Build"
==> "AnalyzeExceptions"
Target.runOrDefault "AnalyzeExceptions"