-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.fsx
46 lines (37 loc) · 801 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
40
41
42
43
44
45
46
#I @"packages/FAKE/tools/"
#r @"FakeLib.dll"
open System
open Fake
open Fake.Git
open Fake.XamarinHelper
open Fake.ProcessHelper
Target "Clean" (fun _ ->
!! "./**/obj/"
++ "./**/bin/"
-- "./bin/"
|> CleanDirs
)
Target "Restore" (fun _ ->
!! "./**/packages.config"
|> Seq.iter (RestorePackage (fun defaults ->
{
defaults with
ToolPath = (if isMono then "/usr/local/bin/nuget" else defaults.ToolPath )
}))
)
Target "BuildSolution" (fun _ ->
[ "./ARArt.sln" ]
|> MSBuildRelease null "Build"
|> ignore
)
Target "Default" (fun _ ->
trace "Please choose a valid task"
)
Target "Build" (fun _ ->
"Clean"
==> "Restore"
==> "BuildSolution"
|> ignore
Run "BuildSolution"
)
RunTargetOrDefault "Default"