From 45f9d7c9c7b032b4093feedf6ebae3101b42f57a Mon Sep 17 00:00:00 2001 From: Oleg Shevchenko Date: Sat, 10 Aug 2019 14:19:56 +0300 Subject: [PATCH] Fix CI build --- build.cake | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/build.cake b/build.cake index fe9edc1..e9d0c21 100644 --- a/build.cake +++ b/build.cake @@ -40,12 +40,21 @@ Task("UpdateBuildVersion") BuildSystem.AppVeyor.UpdateBuildVersion(extensionsVersion); }); +Task("NugetRestore") + .Does(() => +{ + var projects = GetFiles("./**/*.csproj"); + foreach(var project in projects) + { + NuGetRestore(project); + } +}); + Task("Build") + .IsDependentOn("NugetRestore") .Does(() => { - MSBuild(solutionFile, s => - s.SetConfiguration(buildConfiguration) - .WithRestore()); + MSBuild(solutionFile, s => s.SetConfiguration(buildConfiguration)); }); Task("Test")