diff --git a/Directory.Build.props b/Directory.Build.props
index bdd16525c2..02a848c87e 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -14,6 +14,7 @@
true
Recommended
<_SkipUpgradeNetAnalyzersNuGetWarning>true
+ direct
false
$(Platform)