diff --git a/Directory.Build.props b/Directory.Build.props
index 5b7bc41..302df1c 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -39,6 +39,5 @@
-
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 42e7f5a..d8e8f29 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -29,7 +29,6 @@
-
diff --git a/Source/Stage/Api/DynamicTypeFactory.cs b/Source/Stage/Api/DynamicTypeFactory.cs
index c5e0e5c..52d7a31 100644
--- a/Source/Stage/Api/DynamicTypeFactory.cs
+++ b/Source/Stage/Api/DynamicTypeFactory.cs
@@ -53,7 +53,9 @@ Type CreateType(string fullName, Type baseType)
return existing;
}
- var typeBuilder = _module.DefineType(fullName, TypeAttributes.Public | TypeAttributes.Class, baseType);
+ // TypeAttributes.Class is zero — naming it beside Public says nothing the default does not already
+ // say, and Roslynator flags the redundant flag as an error in Release.
+ var typeBuilder = _module.DefineType(fullName, TypeAttributes.Public, baseType);
// Emit a public parameterless constructor chaining to the base so the JSON deserializer can instantiate it.
var constructor = typeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, Type.EmptyTypes);