-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
38 lines (31 loc) · 1.03 KB
/
build.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
30
31
32
33
34
35
36
37
38
#r @"./._fake/packages/FAKE/tools/FakeLib.dll"
#r @"./._fake/packages/FSharp.FakeTargets/tools/FSharpFakeTargets.dll"
#load @"./._fake/loader.fsx"
open Fake
open RestorePackageHelper
open datNET.Fake.Config
let private _OverrideConfig (parameters : datNET.Targets.ConfigParams) =
{ parameters with
Project = Release.Project
Authors = Release.Authors
Description = Release.Description
WorkingDir = Release.WorkingDir
OutputPath = Release.OutputPath
Publish = true
AccessKey = Nuget.ApiKey
}
datNET.Targets.Initialize _OverrideConfig
Target "RestorePackages" (fun _ ->
Source.SolutionFile
|> Seq.head
|> RestoreMSSolutionPackages (fun p ->
{ p with
Sources = [ "https://nuget.org/api/v2" ]
OutputPath = "packages"
Retries = 4 })
)
"MSBuild" <== [ "Clean"; "RestorePackages" ]
"Test" <== [ "MSBuild" ]
"Package" <== [ "MSBuild" ]
"Publish" <== [ "Package" ]
RunTargetOrDefault "MSBuild"