From c867787675c833a4852b25d926ee38dc75dd2459 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Sat, 7 May 2016 14:45:23 -0500 Subject: [PATCH] Fixing the PullNupkgFilesFromBlob script to look for the corehost and metapackage nupkgs under "preview1" instead of finding the old "rc2" packages. --- scripts/dotnet-cli-build/PublishTargets.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/dotnet-cli-build/PublishTargets.cs b/scripts/dotnet-cli-build/PublishTargets.cs index 5e860de0e..92f1c62bd 100644 --- a/scripts/dotnet-cli-build/PublishTargets.cs +++ b/scripts/dotnet-cli-build/PublishTargets.cs @@ -346,7 +346,10 @@ namespace Microsoft.DotNet.Cli.Build List buildVersions = new List(); - Regex buildVersionRegex = new Regex(@"Binaries/(?\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/(?\d+\.\d+\.\d+-p[^-]+-\d{6})/$"); foreach (string file in AzurePublisherTool.ListBlobs(hostBlob)) {