Merge pull request #3074 from eerhardt/FixBuild

Move RestorePackages to Prepare, not Init.
This commit is contained in:
Eric Erhardt 2016-05-17 14:08:13 -05:00
commit 5e947c5fcd

View file

@ -17,7 +17,7 @@ namespace Microsoft.DotNet.Cli.Build
{
public class PrepareTargets
{
[Target(nameof(Init))]
[Target(nameof(Init), nameof(RestorePackages))]
public static BuildTargetResult Prepare(BuildTargetContext c) => c.Success();
[Target(nameof(CheckPrereqCmakePresent), nameof(CheckPlatformDependencies))]
@ -38,8 +38,7 @@ namespace Microsoft.DotNet.Cli.Build
nameof(UpdateTemplateVersions),
nameof(CheckPrereqs),
nameof(LocateStage0),
nameof(ExpectedBuildArtifacts),
nameof(RestorePackages))]
nameof(ExpectedBuildArtifacts))]
public static BuildTargetResult Init(BuildTargetContext c)
{
var configEnv = Environment.GetEnvironmentVariable("CONFIGURATION");