Update files relative path to match what dotnet-install expects
authorWes Haggard <Wes.Haggard@microsoft.com>
Thu, 30 Nov 2017 00:59:55 +0000 (16:59 -0800)
committerWes Haggard <Wes.Haggard@microsoft.com>
Thu, 30 Nov 2017 01:01:40 +0000 (17:01 -0800)
Have the files published to blob feed under the "Runtime/<version>"
folder so we can point dotnet-install scripts at it. We also want to
still keep it under the assets directory like all loose files in the
blob feed.

Commit migrated from https://github.com/dotnet/core-setup/commit/812a236404b5a47c92a94df2be34b22b524af414

src/installer/publish/publish-type.proj

index ba305ec..274d70c 100644 (file)
       <!-- Setup item groups for PublishPackagesToBlobFeed and PublishFilesToBlobFeed -->
       <PackagesToPublish Include="$(DownloadDirectory)**\*.nupkg" />
       <FilesToPublish Include="$(DownloadDirectory)**\*.*" Exclude="@(PackagesToPublish)" />
+
+      <!-- Make the local relative path match what dotnet-install scripts expect -->
+      <FilesToPublish>
+        <RelativeBlobPath>assets/$(BinariesRelativePath)/$([System.String]::Copy('%(RecursiveDir)%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
+      </FilesToPublish>
     </ItemGroup>
   </Target>