forked from WebApiContrib/WebAPIContrib.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.fsx
More file actions
35 lines (28 loc) · 611 Bytes
/
build.fsx
File metadata and controls
35 lines (28 loc) · 611 Bytes
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
#r "packages/FAKE/tools/FakeLib.dll"
open Fake
open Fake.DotNetCli
Target "Clean" (fun _ ->
!! "artifacts" ++ "src/*/bin" ++ "test/*/bin"
|> DeleteDirs
)
Target "Build" (fun _ ->
DotNetCli.Restore id
!! "**/*.csproj"
|> DotNetCli.Build id
)
Target "Test" (fun _ ->
!! "tests/**/*.csproj"
|> DotNetCli.Test id
)
Target "Pack" (fun _ ->
!! "src/**/*.csproj"
|> DotNetCli.Pack
(fun p ->
{ p with
Configuration = "Release"
OutputPath = "../../artifacts" })
)
"Clean"
==> "Build"
==> "Pack"
RunTargetOrDefault "Pack"