Skip to content

Commit 8a09ed7

Browse files
authored
Disable Aot and Trim analyzers when building runtime tests (#88209)
When targeting native AOT, these analyzers are producing warnings that are treated as errors
1 parent 3296baa commit 8a09ed7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tests/Directory.Build.props

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@
9494
<MonoBinDir>$(__MonoBinDir)</MonoBinDir>
9595
</PropertyGroup>
9696

97-
<!-- Language settings -->
98-
<PropertyGroup>
99-
<RunAnalyzers>false</RunAnalyzers>
100-
</PropertyGroup>
101-
10297
<!-- Setup Default symbol and optimization for Configuration -->
10398
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
10499
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
@@ -129,6 +124,8 @@
129124
<!-- Disable some C# warnings for the tests. -->
130125
<NoWarn>78,162,164,168,169,219,251,252,414,429,618,642,649,652,659,675,1691,1717,1718,3001,3002,3003,3005,3008,8981</NoWarn>
131126
<RunAnalyzers>false</RunAnalyzers>
127+
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
128+
<EnableAotAnalyzer>false</EnableAotAnalyzer>
132129
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
133130
<SkipSigning Condition="'$(CrossGen)' == 'true'">true</SkipSigning>
134131
<AssemblyKey>Test</AssemblyKey>

0 commit comments

Comments
 (0)