diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 0000000..80f498a
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,5 @@
+
+
+ true
+
+
diff --git a/src/FX.GrpcClient/FX.GrpcClient.csproj b/src/FX.GrpcClient/FX.GrpcClient.csproj
index 16f3226..7cf46c9 100644
--- a/src/FX.GrpcClient/FX.GrpcClient.csproj
+++ b/src/FX.GrpcClient/FX.GrpcClient.csproj
@@ -4,6 +4,8 @@
net8.0
enable
enable
+
+ $(WarningsNotAsErrors);CS8981
diff --git a/src/FX.GrpcService/FX.GrpcService.csproj b/src/FX.GrpcService/FX.GrpcService.csproj
index dc1a0b2..7b2a54c 100644
--- a/src/FX.GrpcService/FX.GrpcService.csproj
+++ b/src/FX.GrpcService/FX.GrpcService.csproj
@@ -4,6 +4,8 @@
net8.0
enable
enable
+
+ $(WarningsNotAsErrors);CS8981