Adding a task to set the blob properties correctly based on type.
This commit is contained in:
parent
6d7f110122
commit
03a17a9b76
4 changed files with 75 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue