forked from halkar/xamarin-range-slider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cake
35 lines (30 loc) · 844 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
31
32
33
34
35
var target = Argument("target", "Default");
var nugetPackagesDir = Directory("./artifacts");
Task("Restore-NuGet-Packages")
.Does(() =>
{
NuGetRestore("./Xamarin.RangeSlider.sln");
});
Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does (() =>
{
NuGetRestore("./Xamarin.RangeSlider.sln");
DotNetBuild("./Xamarin.RangeSlider.sln", c => c.Configuration = "Release");
});
var nuGetPackSettings = new NuGetPackSettings
{
BasePath = "./",
OutputDirectory = nugetPackagesDir
};
Task("Pack-NugetPackages")
.IsDependentOn("Build")
.Does (() =>
{
CreateDirectory(nugetPackagesDir);
NuGetPack("./Xamarin.RangeSlider.nuspec", nuGetPackSettings);
NuGetPack("./Xamarin.Forms.RangeSlider.nuspec", nuGetPackSettings);
});
Task("Default")
.IsDependentOn("Pack-NugetPackages");
RunTarget (target);