-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.cake
30 lines (25 loc) · 900 Bytes
/
build.cake
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
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////
Task("Clean")
.WithCriteria(c => HasArgument("rebuild"))
.Does(() =>
{
CleanDirectory($"./src/PgPartner/bin/{configuration}");
CleanDirectory($"./src/PgPartner.SampleApp/bin/{configuration}");
});
Task("Build")
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreBuild("./src/PgPartner.SampleApp/PgPartner.SampleApp.sln", new DotNetCoreBuildSettings
{
Configuration = configuration,
});
});
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
RunTarget(target);