-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathnuget-install.cake
97 lines (90 loc) · 3.61 KB
/
nuget-install.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
Nuget download
https://www.nuget.org/api/v2/package/{packageID}/
https://api.nuget.org/v3/index.json?package=CliWrap&version=3.8.2
https://api.nuget.org/v3-flatcontainer/cliwrap/3.8.2/cliwrap.3.8.2.nupkg
},
https://www.nuget.org/api/v2/package/cake.coreclr/1.3.0/
*/
/*
#addin nuget:https://api.nuget.org/v3/index.json?package=Mono.Cecil&version=0.11.6
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Xamarin.Tools.ComponentGovernance&version=0.0.1.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.Net.HTTP&version=0.0.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.IO&version=0.0.4
*/
Dictionary<string, string> nuget_packages = new ()
{
// { "cake.coreclr", "1.3.0" }
{ "HolisticWare.Xamarin.Tools.ComponentGovernance", "0.0.1.4" },
{ "HolisticWare.Core.Net.HTTP", "0.0.4" },
{ "HolisticWare.Core.IO", "0.0.4" },
};
Task("nuget-install")
.Does
(
() =>
{
EnsureDirectoryExists("./output");
/*
nuget.exe must be in the PATH
NuGetInstall
(
"HolisticWare.Xamarin.Tools.ComponentGovernance",
new NuGetInstallSettings
{
Version = "0.0.1.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"HolisticWare.Core.Net.HTTP",
new NuGetInstallSettings
{
Version = "0.0.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"HolisticWare.Core.IO",
new NuGetInstallSettings
{
Version = "0.0.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"CliWrap",
new NuGetInstallSettings
{
Version = "3.8.2",
OutputDirectory = "./tools/Addins"
}
);
*/
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/cliwrap/3.8.2/cliwrap.3.8.2.nupkg",
$"./output/cliwrap.3.8.2.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.core.net.http/0.0.4/holisticware.core.net.http.0.0.4.nupkg",
$"./output/holisticware.core.net.http.0.0.4.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.core.io/0.0.4/holisticware.core.io.0.0.4.nupkg",
$"./output/holisticware.core.io.0.0.4.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.xamarin.tools.componentgovernance/0.0.1.4/holisticware.xamarin.tools.componentgovernance.0.0.1.4.nupkg",
$"./output/holisticware.xamarin.tools.componentgovernance.0.0.1.4.nupkg"
);
/*
*/
}
);