Add a GUI. Use FAKE to manage the build and paket for dependencies.
[sudokuSolver.git] / build.fsx
1 #!/usr/bin/fsharpi
2
3 #I "packages/FAKE/tools/"
4 #r @"packages/FSharp.Compiler.Service/lib/net45/FSharp.Compiler.Service.dll"
5 #r @"packages/FAKE/tools/FakeLib.dll"
6
7 open System.Diagnostics
8 open Fake
9 open Fake.EnvironmentHelper
10
11 let buildDirDebug = "./build/Debug/"
12 let buildDirRelease = "./build/Release/"
13
14 Target "Clean" (fun _ ->
15     trace "Cleaning..."
16     CleanDir buildDirDebug
17     CleanDir buildDirRelease
18 )
19
20 Target "Debug" (fun _ ->
21     trace "Building in Debug mode..."
22     !! "**/*.fsproj" |> MSBuildDebug buildDirDebug "Build" |> Log "Debug-Output:"
23 )
24
25 Target "Release" (fun _ ->
26     trace "Building in Release mode..."
27     !! "**/*.fsproj" |> MSBuildRelease buildDirRelease "Build" |> Log "Release-Output:"
28 )
29
30 Target "Deploy" (fun _ ->
31     trace "Deployement..."
32 )
33
34 "Clean" ==> "Release"
35 "Release" ==> "Deploy"
36
37 RunTargetOrDefault "Debug"