Skip to content

Commit 98ee3ea

Browse files
adrianhallahall
andauthored
fix: suppress MT7156 duplicate BundleResource warnings on TodoApp.Uno ios/maccatalyst (#569)
Co-authored-by: ahall <ahall@cloudflare.com>
1 parent ddd8c04 commit 98ee3ea

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

samples/todoapp/TodoApp.Uno/TodoApp.Uno/TodoApp.Uno.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@
5252
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'browserwasm'
5353
">true</SuppressTrimAnalysisWarnings>
5454

55+
<!--
56+
MT7156: Uno.Resizetizer (unoresizetizer) rasterizes each SVG-sourced asset
57+
(Assets/Icons/icon_foreground.svg, Assets/Images/back.svg, Assets/Splash/splash_screen.svg)
58+
into both an unscaled base PNG and an explicit "scale-100" variant. On ios/maccatalyst these
59+
collapse to the same BundleResource LogicalName (Apple bundling treats unscaled and "1x" as
60+
identical), so one copy is silently dropped - benign, expected Resizetizer output on these
61+
TFMs, not a duplicate-inclusion bug in this project's Assets/UnoIcon/UnoSplashScreen wiring.
62+
See #541.
63+
-->
64+
<MSBuildWarningsAsMessages Condition="
65+
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR
66+
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'
67+
">$(MSBuildWarningsAsMessages);MT7156</MSBuildWarningsAsMessages>
68+
5569
</PropertyGroup>
5670
<ItemGroup>
5771
<None Remove="Assets\AddItem.png" />

0 commit comments

Comments
 (0)