Skip to content

Commit 226f880

Browse files
committed
Ignore IL warnings on Sample apps
1 parent 393515c commit 226f880

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Controls/samples/Controls.Sample/Maui.Controls.Sample.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
<!-- <WindowsPackageType>None</WindowsPackageType> -->
3737
</PropertyGroup>
3838

39+
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) or $(TargetFramework.Contains('-maccatalyst'))">
40+
<NoWarn>$(NoWarn);IL2067;IL2026</NoWarn>
41+
</PropertyGroup>
42+
3943
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
4044
<NoWarn>$(NoWarn);CS8305</NoWarn>
4145
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>

src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
1616
</PropertyGroup>
1717

18+
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) or $(TargetFramework.Contains('-maccatalyst'))">
19+
<NoWarn>$(NoWarn);IL2067;IL2026</NoWarn>
20+
</PropertyGroup>
21+
1822
<PropertyGroup>
1923
<ApplicationTitle>Controls.TestCases.HostApp</ApplicationTitle>
2024
<ApplicationId>com.microsoft.maui.uitests</ApplicationId>

0 commit comments

Comments
 (0)