Skip to content

Use fully qualified names for attributes defined in source generated files #246

@sdargaud

Description

@sdargaud

Is your feature request related to a problem? Please describe.
The attributes, like BindableDerivedListAttribute, defined in the source generated files, derive from Attribute.
Since our solution already defines an Attribute class (I know, this is bad practice, but we can't change that unfortunately), and is used with global usings, it generates the following error:
'Attribute' is an ambiguous reference between 'MyApp.Attribute' and 'System.Attribute'

Describe the solution you'd like
Would it be possible to use global::System.Attribute instead?

Describe alternatives you've considered
I considered removing the global usings but it would mean changing hundreds of files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions