diff --git a/Directory.Build.props b/Directory.Build.props
index eeeada6c9..4e634c7bf 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -50,7 +50,7 @@
none
true
- CA1863,CS8002,IL2026,IL2104
+ CA1863,CS8002,IL2026,IL2104,NU1901,NU1902,NU1903,NU1904