Add PullNupkgFilesFromBlob target

This target pulls all the nupkgs from the matching azure storage
and then copies them into the artifact\$(RID)\packages folder.
This commit is contained in:
Wes Haggard 2016-04-07 17:25:37 -07:00
parent b9d6a0c911
commit d7376f84c3
2 changed files with 30 additions and 0 deletions

View file

@ -322,5 +322,16 @@ namespace Microsoft.DotNet.Cli.Build
}
return c.Success();
}
[Target(nameof(PrepareTargets.Init), nameof(InitPublish))]
public static BuildTargetResult PullNupkgFilesFromBlob(BuildTargetContext c)
{
var hostBlob = $"{Channel}/Binaries/{CliNuGetVersion}/";
Directory.CreateDirectory(Dirs.Packages);
AzurePublisherTool.DownloadFiles(hostBlob, ".nupkg", Dirs.Packages);
return c.Success();
}
}
}