Fixing the PullNupkgFilesFromBlob script to look for the corehost and metapackage nupkgs under "preview1" instead of

finding the old "rc2" packages.
This commit is contained in:
Eric Erhardt 2016-05-07 14:45:23 -05:00
parent fb037e66a0
commit c867787675

View file

@ -346,7 +346,10 @@ namespace Microsoft.DotNet.Cli.Build
List<string> buildVersions = new List<string>();
Regex buildVersionRegex = new Regex(@"Binaries/(?<version>\d+\.\d+\.\d+-[^-]+-\d{6})/$");
// The corehost packages are published to the CLI version, which is "preview1-xxxxxx" right now.
// But there are -rc2-xxxxxx blobs on Azure, which breaks the sort descending. So only look for
// -p(.*)-xxxxxx for now to ignore those rc2 packages.
Regex buildVersionRegex = new Regex(@"Binaries/(?<version>\d+\.\d+\.\d+-p[^-]+-\d{6})/$");
foreach (string file in AzurePublisherTool.ListBlobs(hostBlob))
{