Skip to content

Commit 5966fdd

Browse files
committed
Add property group to suppress IL2026 warnings for Uno behaviors
1 parent 6b523cd commit 5966fdd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ProjectHeads/App.Head.Uno.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<Import Project="$(MSBuildThisFileDirectory)\App.Head.props" />
77
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\PackageReferences\Uno.props" />
88
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props" />
9+
10+
<PropertyGroup Condition="'$(IsUno)' == 'true'">
11+
<!-- Code generated by Uno.UI.SourceGenerators creates AoT-unsafe code when Behaviors are used. -->
12+
<WarningsNotAsErrors>$(NoWarn);IL2026</WarningsNotAsErrors>
13+
</PropertyGroup>
914

1015
<!--
1116
Import Uno dependencies for all deployable Uno-based Labs project heads.

0 commit comments

Comments
 (0)