Skip to content

Commit

Permalink
Merge pull request unoplatform#16593 from unoplatform/dev/ds/resizeti…
Browse files Browse the repository at this point in the history
…zer-svgs

Include Svg/**/*.svg as Content
  • Loading branch information
jeromelaban authored May 7, 2024
2 parents 1341aec + 01c60f0 commit 56f15f5
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<!-- Transitive library asset -->
<_AssetsToValidate Include="$(OutputPath)\uno52lib\Assets\test.xml" />
<_AssetsToValidate Include="$(OutputPath)\uno52lib\Assets\icon_lib.png" />
<_AssetsToValidate Include="$(OutputPath)\uno52lib\Assets\Svg\myimage.svg" />
</ItemGroup>

<ItemGroup
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Uno.Sdk/targets/Uno.DefaultItems.Resizetizer.targets
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<ItemGroup>
<UnoImage Include="$(AssetsFolder)**\*.svg"
Exclude="@(UnoImage);@(UnoIcon);@(UnoSplashScreen);$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);$(AssetsFolder)\**\Svg\*.svg"
Exclude="@(UnoImage);@(UnoIcon);@(UnoSplashScreen);$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);$(AssetsFolder)\**\Svg\**\*.svg"
IsDefaultItem="true"
Link="$([MSBuild]::MakeRelative ('$(MSBuildProjectDirectory)', '%(Identity)'))" />
<Content Remove="@(UnoImage);$(UnoIconBackgroundFile);$(UnoIconForegroundFile);$(UnoSplashScreenFile)" />
Expand Down
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.DefaultItems.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<Content Include="$(AssetsFolder)**"
Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);**\*.svg;**\*.cs;@(Content)"
IsDefaultItem="true" />
<Content Include="$(AssetsFolder)\**\Svg\**\*.svg"
Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);**\*.cs;@(Content)"
IsDefaultItem="true" />
<Content Include="**\*.png"
Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(Content)"
IsDefaultItem="true" />
Expand Down

0 comments on commit 56f15f5

Please sign in to comment.