Skip to content

Commit 7ff440a

Browse files
Update CommunityToolkit.Maui.Markup.Sample.csproj
1 parent 7238eed commit 7ff440a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/CommunityToolkit.Maui.Markup.Sample/CommunityToolkit.Maui.Markup.Sample.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
<NoWarn>CsWinRT1028</NoWarn>
3636
</PropertyGroup>
3737

38-
<PropertyGroup Condition="'$(Configuration)' == 'Release'" >
38+
<PropertyGroup Condition="'$(Configuration)' == 'Release'
39+
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
40+
<!-- Windows error NETSDK1102: Optimizing assemblies for size is not supported for the selected publish configuration. -->
41+
3942
<PublishAot>false</PublishAot>
4043
<PublishTrimmed>true</PublishTrimmed>
4144
<TrimMode>partial</TrimMode>

0 commit comments

Comments
 (0)