Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit b548c34

Browse files
committed
Use alternative nuget sources if specified
1 parent b0d0bc4 commit b548c34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.cake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ var buildSpec = new BuildSpec {
194194
};
195195

196196

197+
var NUGET_SOURCES = EnvironmentVariable ("NUGET_SOURCES") ?? string.Empty;
198+
if (!string.IsNullOrEmpty (NUGET_SOURCES))
199+
buildSpec.NuGetSources = NUGET_SOURCES.Split (';',',').Select (ns => new NuGetSource { Url = ns }).ToArray ();
197200

198201
// You shouldn't have to configure anything below here
199202
// ######################################################
@@ -449,7 +452,7 @@ Task ("component-docs").Does (() =>
449452
}
450453
});
451454

452-
Task ("libs").IsDependentOn ("genapi");
455+
Task ("libs").IsDependentOn ("genapi").IsDependentOn ("nuget-setup");
453456

454457
Task ("genapi").IsDependentOn ("libs-base").IsDependentOn ("externals").Does (() => {
455458

0 commit comments

Comments
 (0)