|
@@ -14,6 +14,21 @@ let copyright = "TIernan OToole 2016"
|
14
|
14
|
let productName = "B2 Uploader"
|
15
|
15
|
let companyName = "Tiernan OToole"
|
16
|
16
|
|
|
17
|
+let buildMode = getBuildParamOrDefault "buildMode" "Releasex64"
|
|
18
|
+let setParams defaults =
|
|
19
|
+ { defaults with
|
|
20
|
+ Verbosity = Some(Quiet)
|
|
21
|
+ Targets = ["Build"]
|
|
22
|
+ Properties =
|
|
23
|
+ [
|
|
24
|
+ "Optimize", "True"
|
|
25
|
+ "DebugSymbols", "True"
|
|
26
|
+ "Configuration", buildMode
|
|
27
|
+ ]
|
|
28
|
+ }
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
17
|
32
|
Target "SetAssemblyInfo" (fun _ ->
|
18
|
33
|
|
19
|
34
|
CreateCSharpAssemblyInfo "B2Classes/Properties/AssemblyInfo.cs"
|
|
@@ -46,13 +61,13 @@ Target "Clean" (fun _ ->
|
46
|
61
|
|
47
|
62
|
Target "Classes" (fun _ ->
|
48
|
63
|
!! @"B2Classes\B2Classes.csproj"
|
49
|
|
- |> MSBuildRelease buildDir "Build"
|
|
64
|
+ |> MSBuildReleaseExt buildDir setParams.Properties "Build"
|
50
|
65
|
|> Log "AppBuild-Output: "
|
51
|
66
|
)
|
52
|
67
|
|
53
|
68
|
Target "Uploader" (fun _ ->
|
54
|
69
|
!! @"B2Uploader\B2Uploader.csproj"
|
55
|
|
- |> MSBuildRelease buildDir "Build"
|
|
70
|
+ |> MSBuildReleaseExt buildDir setParams.Properties "Build"
|
56
|
71
|
|> Log "AppBuild-Output: "
|
57
|
72
|
)
|
58
|
73
|
|