diff --git a/.editorconfig b/.editorconfig
index e27ffe1..1fe3481 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -11,6 +11,7 @@ indent_size = 2
[*.cs]
indent_size = 4
csharp_style_namespace_declarations = file_scoped:warning
+dotnet_diagnostic.IDE0161.severity = error
dotnet_sort_system_directives_first = true
[*.md]
diff --git a/Directory.Build.props b/Directory.Build.props
index 59fb959..d528f5d 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -7,6 +7,10 @@
enable
true
true
+ true
+ true
+ latest
+ true
true
true
true