Skip to content

Commit 4a8f7f4

Browse files
committed
Try disabling NativeAOT and ILC warnings on CI
1 parent 89e41bc commit 4a8f7f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/CodeBehind/BuildTests/CodeBehindBuildTests.NET.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<PublishAot>@PublishAot@</PublishAot>
1717
<Configuration>@Configuration@</Configuration>
1818
</PropertyGroup>
19+
20+
<!-- Disable NativeAOT/ILC warnings when running on CI, since there they are treated as errors there -->
21+
<PropertyGroup Condition=" '$(RunningOnCI)' == 'true' And '$(_AndroidRuntime)' == 'NativeAOT' ">
22+
<NoWarn>XA1040;IL3053</NoWarn>
23+
</PropertyGroup>
24+
1925
<PropertyGroup>
2026
<DefineConstants Condition=" '$(ExtraConstants)' != '' ">$(DefineConstants);$(ExtraConstants)</DefineConstants>
2127
</PropertyGroup>

0 commit comments

Comments
 (0)