diff --git a/dotnet/Directory.Build.props b/dotnet/Directory.Build.props
index 98d593acaf..da2e3f1960 100644
--- a/dotnet/Directory.Build.props
+++ b/dotnet/Directory.Build.props
@@ -8,7 +8,7 @@
true
13
enable
- $(NoWarn);NU5128
+ $(NoWarn);NU5128;CS8002
true
net9.0
net9.0;net8.0;netstandard2.0;net472