-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.cake
More file actions
37 lines (33 loc) · 1.24 KB
/
build.cake
File metadata and controls
37 lines (33 loc) · 1.24 KB
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
var target = Argument("target", "Default");
Task("Default")
.Does(() =>
{
// build the library
NuGetRestore("./library/Library.sln", new NuGetRestoreSettings
{
Verbosity = NuGetVerbosity.Quiet
});
MSBuild("./library/Library.sln", new MSBuildSettings
{
Verbosity = Verbosity.Minimal,
Configuration = "Release",
PlatformTarget = PlatformTarget.MSIL,
MSBuildPlatform = MSBuildPlatform.x86,
});
// copy the library to output
EnsureDirectoryExists("./output/android");
CopyFileToDirectory("./library/Library.Android/bin/Release/Library.dll", "./output/android");
EnsureDirectoryExists("./output/ios");
CopyFileToDirectory("./library/Library.iOS/bin/Release/Library.dll", "./output/ios");
EnsureDirectoryExists("./output/uwp");
CopyFileToDirectory("./library/Library.UWP/bin/Release/Library.dll", "./output/uwp");
EnsureDirectoryExists("./output/netstandard");
CopyFileToDirectory("./library/Library.NetStandard/bin/Release/netstandard1.0/Library.dll", "./output/netstandard");
// build the nuget
NuGetPack("./nuget/Package.nuspec", new NuGetPackSettings
{
BasePath = "./",
OutputDirectory = "./output"
});
});
RunTarget(target);