Skip to content

Commit

Permalink
Add property group to suppress IL2026 warnings for Uno behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Dec 16, 2024
1 parent 6b523cd commit 5966fdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ProjectHeads/App.Head.Uno.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<Import Project="$(MSBuildThisFileDirectory)\App.Head.props" />
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\PackageReferences\Uno.props" />
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props" />

<PropertyGroup Condition="'$(IsUno)' == 'true'">
<!-- Code generated by Uno.UI.SourceGenerators creates AoT-unsafe code when Behaviors are used. -->
<WarningsNotAsErrors>$(NoWarn);IL2026</WarningsNotAsErrors>
</PropertyGroup>

<!--
Import Uno dependencies for all deployable Uno-based Labs project heads.
Expand Down

0 comments on commit 5966fdd

Please sign in to comment.