-
Notifications
You must be signed in to change notification settings - Fork 18
/
Solution.fsx
29 lines (24 loc) · 973 Bytes
/
Solution.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
#r @"../../../packages/FAKE/tools/FakeLib.dll"
#load "./Utils.fsx"
open System
open Fake
open Utils
let private runCompiler target (config: Map<string, string>) =
let setParams defaults =
{ defaults with
Verbosity = Some(Quiet)
Targets = [target]
Properties = [ "Optimize", "True"
"DebugSymbols", "True"
"Configuration", config.get "build:configuration"
"DeployTarget","Package"
"DeployOnBuild","True"
"CreatePackageOnPublish","True" ]
MaxCpuCount = Some <| Some Environment.ProcessorCount }
build setParams (config.get "build:solution")
let build (config: Map<string, string>) _ =
runCompiler "Build" config
let clean (config: Map<string, string>) _ =
runCompiler "Clean" config
let restore (config: Map<string, string>) _ =
runCompiler "Restore" config