Skip to content

Commit 7b62731

Browse files
committed
Suppress Uno0006 warning after .NET 9 update and adjust IL2026 warning handling
1 parent 5966fdd commit 7b62731

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

ProjectHeads/App.Head.Uno.props

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@
99

1010
<PropertyGroup Condition="'$(IsUno)' == 'true'">
1111
<!-- Code generated by Uno.UI.SourceGenerators creates AoT-unsafe code when Behaviors are used. -->
12-
<WarningsNotAsErrors>$(NoWarn);IL2026</WarningsNotAsErrors>
12+
<WarningsNotAsErrors>$(WarningsNotAsErrors);IL2026</WarningsNotAsErrors>
13+
14+
<!--
15+
Suppression of error Uno0006:
16+
Type 'CommunityToolkit.App.Shared.ItemTemplates' should call 'Initialize
17+
Component()' from its constructor (https://aka.platform.uno/UNO0006)
18+
19+
This error appeared in the gallery after updating to .NET 9, which introduced new default analyzer rules.
20+
It is likely this error was silently present in older builds.
21+
-->
22+
<NoWarn>$(NoWarn);Uno0006</NoWarn>
1323
</PropertyGroup>
1424

1525
<!--

0 commit comments

Comments
 (0)