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")