Skip to content

Commit 189af22

Browse files
[build] enable transitive trimmer warnings (#10369)
Context: dotnet/runtime#118180 The new warnings are opt-in under the following settings: * `<VerifyReferenceTrimCompatibility>true</VerifyReferenceTrimCompatibility>` * `<VerifyReferenceAotCompatibility>true</VerifyReferenceAotCompatibility>`
1 parent 549548c commit 189af22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build-tools/trim-analyzers/trim-analyzers.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<IsTrimmable>true</IsTrimmable>
66
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
77
<EnableAotAnalyzer>true</EnableAotAnalyzer>
8+
<!-- Enable analyzers for transitive references: https://github.com/dotnet/runtime/pull/118180 -->
9+
<VerifyReferenceTrimCompatibility>true</VerifyReferenceTrimCompatibility>
10+
<VerifyReferenceAotCompatibility>true</VerifyReferenceAotCompatibility>
811
<!-- In app projects, tells ILLink to emit warnings as errors -->
912
<ILLinkTreatWarningsAsErrors>true</ILLinkTreatWarningsAsErrors>
1013
<!--

0 commit comments

Comments
 (0)