diff --git a/scripts/dotnet-cli-build/Publishing/AzurePublisher.cs b/scripts/dotnet-cli-build/Publishing/AzurePublisher.cs index 240129e8e..c16eff43f 100644 --- a/scripts/dotnet-cli-build/Publishing/AzurePublisher.cs +++ b/scripts/dotnet-cli-build/Publishing/AzurePublisher.cs @@ -58,6 +58,9 @@ namespace Microsoft.DotNet.Cli.Build { CloudBlockBlob blockBlob = _blobContainer.GetBlockBlobReference(blob); blockBlob.UploadTextAsync(content).Wait(); + + blockBlob.Properties.ContentType = "text/plain"; + blockBlob.SetPropertiesAsync().Wait(); } public void CopyBlob(string sourceBlob, string targetBlob) @@ -83,6 +86,11 @@ namespace Microsoft.DotNet.Cli.Build blockBlob.Properties.CacheControl = "no-cache"; blockBlob.SetPropertiesAsync().Wait(); } + else if (Path.GetExtension(blockBlob.Uri.AbsolutePath.ToLower()) == ".version") + { + blockBlob.Properties.ContentType = "text/plain"; + blockBlob.SetPropertiesAsync().Wait(); + } } public IEnumerable ListBlobs(string virtualDirectory)