diff --git a/Directory.Build.props b/Directory.Build.props
index 7c214d4b..b2de734d 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -28,13 +28,6 @@
NU1901;NU1902;NU1903;NU1904
-
-
- $(NoWarn);CS8602;CS8604;CS8777
-
-
diff --git a/Directory.Build.targets b/Directory.Build.targets
new file mode 100644
index 00000000..59959cc5
--- /dev/null
+++ b/Directory.Build.targets
@@ -0,0 +1,8 @@
+
+
+
+ $(NoWarn);nullable
+
+
diff --git a/Renci.SshNet.sln b/Renci.SshNet.sln
index 5bfc241d..ecfcf13a 100644
--- a/Renci.SshNet.sln
+++ b/Renci.SshNet.sln
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
stylecop.json = stylecop.json
THIRD-PARTY-NOTICES.TXT = THIRD-PARTY-NOTICES.TXT
version.json = version.json
+ Directory.Build.targets = Directory.Build.targets
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D21A4D03-0AC2-4613-BB6D-74D2D16A72CC}"
diff --git a/src/Renci.SshNet/Renci.SshNet.csproj b/src/Renci.SshNet/Renci.SshNet.csproj
index 69be301b..a428c171 100644
--- a/src/Renci.SshNet/Renci.SshNet.csproj
+++ b/src/Renci.SshNet/Renci.SshNet.csproj
@@ -36,7 +36,7 @@
true
-
+
true
true