Skip to content

PlatformAttribute has AllowMultiple = true, but that doesn't work. #3941

Closed
@manfred-brands

Description

@manfred-brands

Found whilst working on #3926

On a test with more than one attribute:

[Platform(Include = "Linux")]
[Platform(Include = "Win")]

I do get the error: Only supported on Linux when running under Windows.

Yes, the documentation mentions combining the platforms using commas, but should we make this a compile error?

Should the AttributeUsage be update to AllowMultiple = false?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions