Skip to content

SBRP generator: utilize the IncludeAssemblyAttributes feature of the Roslyn-based GenAPI #3252

@andriipatsula

Description

@andriipatsula

Describe the Problem

Currently, the SBRP generator tries to guess the correct assembly attributes for a reference package. There are template files:

that are appended to the top of generated source file. One of the know issue is with the assembly: CLSCompliant(true)] attribute.

Another problem is related to "usings" from the AssemblyStandardUsings.txt template: the roslyn folks insist not to use using in huge files.

Describe the Solution

I added an option for the Roslyn-based GenAPI to IncludeAssemblyAttributes to generate the assembly attributes. Setting it to true will tell the GenAPI to iterate the assembly attributes and generate them with fully qualified type names. So, no need to add both template files.

Additional Context

Metadata

Metadata

Assignees

Labels

area-sbrpSource build reference packages

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions