diff --git a/Directory.Build.targets b/Directory.Build.targets
index df4827092b..c0b906ecc4 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -25,8 +25,8 @@
- $(DefineConstants);FEATURE_SPANFORMATTABLE
$(DefineConstants);FEATURE_RANDOM_NEXTINT64_NEXTSINGLE
+ $(DefineConstants);FEATURE_SPANFORMATTABLE
diff --git a/TestTargetFramework.props b/TestTargetFramework.props
index 014f84d17f..6bb22df5ea 100644
--- a/TestTargetFramework.props
+++ b/TestTargetFramework.props
@@ -63,9 +63,12 @@
true
-
+
false
+
+
+
$(NoWarn);CA1034
$(NoWarn);CA1802