Skip to content

Adding an attribute class makes the build fail with an unrelated error #1203

Open
@asklar

Description

@asklar

Describe the bug
Adding a class that derives from Attribute will cause the build to fail with an unrelated error

To Reproduce

namespace CSWinRT_AuthoringPlayground
{
    public sealed class X {}

    // Commenting the following line makes the build succeed
    public sealed class MyAttr : Attribute { }

}

Produces the error:
error CS0246: The type or namespace name 'IXClass' could not be found (are you missing a using directive or an assembly reference?)

Expected behavior
Build succeeds with proper output

Version Info
CsWinRT 1.6.4

Metadata

Metadata

Assignees

Labels

authoringRelated to authoring feature workbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions