Adding a task to set the blob properties correctly based on type.

This commit is contained in:
Livar Cunha 2016-07-15 11:40:56 -07:00
parent 6d7f110122
commit 03a17a9b76
4 changed files with 75 additions and 1 deletions

View file

@ -92,6 +92,12 @@ namespace Microsoft.DotNet.Cli.Build
target.StartCopyAsync(source).Wait();
}
public void SetBlobPropertiesBasedOnFileType(string path)
{
CloudBlockBlob blob = _blobContainer.GetBlockBlobReference(path);
SetBlobPropertiesBasedOnFileType(blob);
}
private void SetBlobPropertiesBasedOnFileType(CloudBlockBlob blockBlob)
{
if (Path.GetExtension(blockBlob.Uri.AbsolutePath.ToLower()) == ".svg")