-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
35 lines (29 loc) · 938 Bytes
/
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
#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"