Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6833f30

Browse files
committed
Fix double slash issue when uploading to intermediate blob storage
While uploading to the intermediate blob storage we had 2 slashes but while downloading only one so we ended up with different final outputs. This change fixes the double slash for uploading.
1 parent f18b276 commit 6833f30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

publish/publish.proj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@
8181
<Error Condition="'$(AzureAccountName)' == ''" Text="Missing required property 'AzureAccountName'" />
8282
<Error Condition="'$(ContainerName)' == ''" Text="Missing required property 'ContainerName'" />
8383
<Error Condition="'$(RelativeBlobPath)' == ''" Text="Missing required property 'RelativeBlobPath'" />
84+
<Error Condition="!HasTrailingSlash('$(RelativeBlobPath)')" Text="RelativeBlobPath is expected to have a trailing '/' - '$(RelativeBlobPath)'" />
8485

8586
<ItemGroup>
8687
<ItemsToPublish Include="$(ItemsToPublish)" />
8788
<ItemsToPublish>
88-
<RelativeBlobPath>$(RelativeBlobPath)/%(Filename)%(Extension)</RelativeBlobPath>
89+
<RelativeBlobPath>$(RelativeBlobPath)%(Filename)%(Extension)</RelativeBlobPath>
8990
</ItemsToPublish>
9091
</ItemGroup>
9192

0 commit comments

Comments
 (0)