Skip to content

Commit

Permalink
(GH-374) Add norestore and nobuild settings
Browse files Browse the repository at this point in the history
This brings consistency to how these parameters are used.  Some aliases did
it, others didn't.  Let's rely on the Cake DAG to ensure that everything
is done correctly, rather than "magic" being done.
  • Loading branch information
gep13 committed Sep 19, 2019
1 parent bb820e3 commit b47f248
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Cake.Recipe/Content/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ BuildParameters.Tasks.DotNetCoreBuildTask = Task("DotNetCore-Build")
DotNetCoreBuild(BuildParameters.SolutionFilePath.FullPath, new DotNetCoreBuildSettings
{
Configuration = BuildParameters.Configuration,
MSBuildSettings = msBuildSettings
MSBuildSettings = msBuildSettings,
NoRestore = true
});
CopyBuildOutput();
Expand Down Expand Up @@ -332,7 +333,9 @@ public void CopyBuildOutput()
OutputDirectory = outputFolder.Combine(targetFramework),
Framework = targetFramework,
Configuration = BuildParameters.Configuration,
MSBuildSettings = msBuildSettings
MSBuildSettings = msBuildSettings,
NoRestore = true
NoBuild = true
});
}
}
Expand Down
1 change: 1 addition & 0 deletions Cake.Recipe/Content/nuget.cake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ BuildParameters.Tasks.DotNetCorePackTask = Task("DotNetCore-Pack")
var settings = new DotNetCorePackSettings {
NoBuild = true,
NoRestore = true,
Configuration = BuildParameters.Configuration,
OutputDirectory = BuildParameters.Paths.Directories.NuGetPackages,
MSBuildSettings = msBuildSettings,
Expand Down

0 comments on commit b47f248

Please sign in to comment.