Exemple #1
0
        private static void CopyBlobsToLatest(string destinationFolder)
        {
            foreach (string blob in AzurePublisherTool.ListBlobs(AzurePublisher.Product.Sdk, CliNuGetVersion))
            {
                string targetName = Path.GetFileName(blob)
                                    .Replace(CliNuGetVersion, "latest");

                string target = $"{destinationFolder}/{targetName}";
                AzurePublisherTool.CopyBlob(blob, target);
            }
        }
Exemple #2
0
 private static void CopyBlobs(string sourceFolder, string destinationFolder)
 {
     foreach (string blob in AzurePublisherTool.ListBlobs(sourceFolder))
     {
         string source     = blob.Replace("/dotnet/", "");
         string targetName = Path.GetFileName(blob)
                             .Replace(SharedFrameworkNugetVersion, "latest")
                             .Replace(SharedHostNugetVersion, "latest");
         string target = $"{destinationFolder}{targetName}";
         AzurePublisherTool.CopyBlob(source, target);
     }
 }