Exclude SVG files from BAR manifest (dotnet/core-setup#5037)
authorDavis Goodin <dagood@users.noreply.github.com>
Thu, 24 Jan 2019 15:33:15 +0000 (09:33 -0600)
committerGitHub <noreply@github.com>
Thu, 24 Jan 2019 15:33:15 +0000 (09:33 -0600)
Fixes error in "Publish to Build Asset Registry Job" in official build.

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

src/installer/publish/publish.proj

index c20635d..39d8f37 100644 (file)
       <_DownloadedStandardPackages Include="@(_DownloadedPackages)"
                                   Exclude="@(_DownloadedSymbolsPackages)"
                                   Condition="$([System.String]::new('%(_DownloadedPackages.Identity)').EndsWith('.nupkg'))" />
+
+      <!-- Exclude SVG files from BAR manifest: https://github.com/dotnet/arcade/issues/1842. -->
+      <_DownloadedAssets Condition="$([System.String]::new('%(_DownloadedAssets.Identity)').EndsWith('.svg'))">
+        <ExcludeFromManifest>true</ExcludeFromManifest>
+      </_DownloadedAssets>
     </ItemGroup>
   </Target>