forked from meajaykumar/AutoCompleteBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.fsx
More file actions
55 lines (47 loc) · 1.5 KB
/
build.fsx
File metadata and controls
55 lines (47 loc) · 1.5 KB
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
47
48
49
50
51
52
53
54
55
// include Fake lib
#r @"tools\FAKE\tools\FakeLib.dll"
open Fake
RestorePackages()
// Properties
let buildDir = @".\build\"
let testDir = @".\test\"
let packagesDir = @".\packages"
let packagingRoot = "./packaging/"
let packagesVersion = "1.2.0.3"
// Targets
Target "Clean" (fun _ ->
CleanDirs [buildDir; testDir; packagingRoot]
)
Target "Build" (fun _ ->
!! @"AutoCompleteBox\AutoCompleteBox.csproj"
|> MSBuildRelease buildDir "Build"
|> Log "AppBuild-Output: "
)
Target "CreateNugetPackage" (fun _ ->
NuGet (fun p ->
{p with
Project = "AutoCompleteBoxWinRT"
OutputPath = packagingRoot
WorkingDir = buildDir
Version = packagesVersion
Dependencies =
["Rx-Main", GetPackageVersion "./packages/" "Rx-Main"
"Rx-Core", GetPackageVersion "./packages/" "Rx-Core"
"Rx-XAML", "2.1.30214.0"
"Rx-Interfaces", GetPackageVersion "./packages/" "Rx-Interfaces"
"Rx-Linq", GetPackageVersion "./packages/" "Rx-Linq"
"Rx-PlatformServices", GetPackageVersion "./packages/" "Rx-PlatformServices"
"winrtxamltoolkit", GetPackageVersion "./packages/" "winrtxamltoolkit"]
Publish = false
}) "autocompletebox.nuspec"
)
Target "Default" (fun _ ->
trace "Build completed"
)
// Dependencies
"Clean"
==> "Build"
==> "CreateNugetPackage"
==> "Default"
// start build
Run "Default"