Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All"/>
<PackageReference Include="Roslynator.Analyzers" PrivateAssets="All"/>
<PackageReference Include="Meziantou.Analyzer" PrivateAssets="All"/>
<PackageReference Include="Microsoft.Net.Compilers.Toolset" PrivateAssets="All"/>
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" NoWarn="NU5104" />
<PackageVersion Include="Roslynator.Analyzers" Version="4.16.0" />
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.141" />
<PackageVersion Include="Microsoft.Net.Compilers.Toolset" Version="5.6.0" />
<!-- Testing & Specifications -->
<PackageVersion Include="Cratis.Specifications" Version="4.0.0" />
<PackageVersion Include="Cratis.Specifications.XUnit" Version="4.0.0" />
Expand Down
4 changes: 3 additions & 1 deletion Source/Stage/Api/DynamicTypeFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading