Skip to content

CS0029 - @ref causes compilation error see #17416 #35449

@johnyjp

Description

@johnyjp

dotnet/AspNetCore.Docs#17416

Removing the @ref makes it compile. eg
<AgentFullRecord @ref="agentForm" Agent="@selectedAgent" OnChanged="OnChanged" />

does not compile, but
<AgentFullRecord Agent="@selectedAgent" OnChanged="OnChanged" />

does

I have created an issue from this page as it referes to @ref, I cant find a more relavent one. its an easy issue to recreate. Read #17416. Instructions say to add comments to an existing issue even if its closed.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions