Strip off "index.json" before appending "assets"
This commit is contained in:
parent
cbcd4fd3c3
commit
aa458eca82
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Condition="'$(GeneratePropsFile)' != 'true'" Project="$(NuGetPackagesDir)/microsoft.dotnet.build.tasks.feed/$(BuildTasksFeedToolVersion)/build/Microsoft.DotNet.Build.Tasks.Feed.targets" />
|
|
||||||
|
|
||||||
<Target Name="SetAzureProps"
|
<Target Name="SetAzureProps"
|
||||||
Condition=" '$(IsOrchestratedPublish)' == 'True' And '$(PB_PublishBlobFeedUrl)' != '' ">
|
Condition=" '$(IsOrchestratedPublish)' == 'True' And '$(PB_PublishBlobFeedUrl)' != '' ">
|
||||||
|
|
||||||
|
@ -9,12 +8,20 @@
|
||||||
<Output TaskParameter="BlobElements" ItemName="BlobElements" />
|
<Output TaskParameter="BlobElements" ItemName="BlobElements" />
|
||||||
</ParseBlobUrl>
|
</ParseBlobUrl>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<PublishBlobFeedUrlBlobPath>%(BlobElements.BlobPath)</PublishBlobFeedUrlBlobPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<RegexReplace Input="$(PublishBlobFeedUrlBlobPath)" Expression="index.json" Replacement="" Count="1">
|
||||||
|
<Output TaskParameter="Output" ItemName="BlobPath" />
|
||||||
|
</RegexReplace>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ArtifactContainerName>%(BlobElements.ContainerName)</ArtifactContainerName>
|
<ArtifactContainerName>%(BlobElements.ContainerName)</ArtifactContainerName>
|
||||||
<ChecksumContainerName>%(BlobElements.ContainerName)</ChecksumContainerName>
|
<ChecksumContainerName>%(BlobElements.ContainerName)</ChecksumContainerName>
|
||||||
<ArtifactCloudDropAccountName>%(BlobElements.AccountName)</ArtifactCloudDropAccountName>
|
<ArtifactCloudDropAccountName>%(BlobElements.AccountName)</ArtifactCloudDropAccountName>
|
||||||
<ChecksumCloudDropAccountName>%(BlobElements.AccountName)</ChecksumCloudDropAccountName>
|
<ChecksumCloudDropAccountName>%(BlobElements.AccountName)</ChecksumCloudDropAccountName>
|
||||||
<BlobStoragePartialRelativePath>%(BlobElements.BlobPath)/assets</BlobStoragePartialRelativePath>
|
<BlobStoragePartialRelativePath>%(BlobPath)assets</BlobStoragePartialRelativePath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue