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

Commit aa458ec

Browse files
author
jbeisner
committed
Strip off "index.json" before appending "assets"
1 parent cbcd4fd commit aa458ec

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

build/publish/AzureInfo.targets

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Condition="'$(GeneratePropsFile)' != 'true'" Project="$(NuGetPackagesDir)/microsoft.dotnet.build.tasks.feed/$(BuildTasksFeedToolVersion)/build/Microsoft.DotNet.Build.Tasks.Feed.targets" />
4-
3+
54
<Target Name="SetAzureProps"
65
Condition=" '$(IsOrchestratedPublish)' == 'True' And '$(PB_PublishBlobFeedUrl)' != '' ">
76

87
<ParseBlobUrl BlobUrl="$(PB_PublishBlobFeedUrl)">
98
<Output TaskParameter="BlobElements" ItemName="BlobElements" />
109
</ParseBlobUrl>
1110

11+
<PropertyGroup>
12+
<PublishBlobFeedUrlBlobPath>%(BlobElements.BlobPath)</PublishBlobFeedUrlBlobPath>
13+
</PropertyGroup>
14+
15+
<RegexReplace Input="$(PublishBlobFeedUrlBlobPath)" Expression="index.json" Replacement="" Count="1">
16+
<Output TaskParameter="Output" ItemName="BlobPath" />
17+
</RegexReplace>
18+
1219
<PropertyGroup>
1320
<ArtifactContainerName>%(BlobElements.ContainerName)</ArtifactContainerName>
1421
<ChecksumContainerName>%(BlobElements.ContainerName)</ChecksumContainerName>
1522
<ArtifactCloudDropAccountName>%(BlobElements.AccountName)</ArtifactCloudDropAccountName>
1623
<ChecksumCloudDropAccountName>%(BlobElements.AccountName)</ChecksumCloudDropAccountName>
17-
<BlobStoragePartialRelativePath>%(BlobElements.BlobPath)/assets</BlobStoragePartialRelativePath>
24+
<BlobStoragePartialRelativePath>%(BlobPath)assets</BlobStoragePartialRelativePath>
1825
</PropertyGroup>
1926
</Target>
2027

0 commit comments

Comments
 (0)