tweaks to build script (still not 100%) · 1c6dd01bc7 - SVN.BY: Go Git Service
Browse Source

tweaks to build script (still not 100%)

Tiernan OToole 8 years ago
parent
commit
1c6dd01bc7
3 changed files with 23 additions and 8 deletions
  1. 3 3
      B2Classes/Properties/AssemblyInfo.cs
  2. 3 3
      B2Uploader/Properties/AssemblyInfo.cs
  3. 17 2
      build.fsx

+ 3 - 3
B2Classes/Properties/AssemblyInfo.cs

@@ -7,10 +7,10 @@ using System.Runtime.InteropServices;
7 7
 [assembly: AssemblyProductAttribute("B2 Uploader")]
8 8
 [assembly: AssemblyCompanyAttribute("Tiernan OToole")]
9 9
 [assembly: AssemblyCopyrightAttribute("TIernan OToole 2016")]
10
-[assembly: AssemblyVersionAttribute("2016.2.1.866")]
11
-[assembly: AssemblyFileVersionAttribute("2016.2.1.866")]
10
+[assembly: AssemblyVersionAttribute("2016.2.1.927")]
11
+[assembly: AssemblyFileVersionAttribute("2016.2.1.927")]
12 12
 namespace System {
13 13
     internal static class AssemblyVersionInformation {
14
-        internal const string Version = "2016.2.1.866";
14
+        internal const string Version = "2016.2.1.927";
15 15
     }
16 16
 }

+ 3 - 3
B2Uploader/Properties/AssemblyInfo.cs

@@ -7,10 +7,10 @@ using System.Runtime.InteropServices;
7 7
 [assembly: AssemblyProductAttribute("B2 Uploader")]
8 8
 [assembly: AssemblyCompanyAttribute("Tiernan OToole")]
9 9
 [assembly: AssemblyCopyrightAttribute("TIernan OToole 2016")]
10
-[assembly: AssemblyVersionAttribute("2016.2.1.866")]
11
-[assembly: AssemblyFileVersionAttribute("2016.2.1.866")]
10
+[assembly: AssemblyVersionAttribute("2016.2.1.927")]
11
+[assembly: AssemblyFileVersionAttribute("2016.2.1.927")]
12 12
 namespace System {
13 13
     internal static class AssemblyVersionInformation {
14
-        internal const string Version = "2016.2.1.866";
14
+        internal const string Version = "2016.2.1.927";
15 15
     }
16 16
 }

+ 17 - 2
build.fsx

@@ -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