Skip to content

[RazorComponents] Attribute 'Parameter' is not valid on this declaration type. #9364

@roboriaan

Description

@roboriaan

Hi,

I'm getting the following build error after upgrading VS2019 to 16.1.0 Preview 1.0 by following the recommendation bell icon (bottom right) :

error CS0592: Attribute 'Parameter' is not valid on this declaration type. It is only valid on 'property, indexer' declarations

I've noticed that the Razor components template option is also missing from the create new project dialog. So to reproduce this issue, upgrade to visual studio to 16.1.0 Preview 1.0 and then create a new Razor components project using the cli "dotnet new razorcomponents".

I have reinstalled the blazor extension but not downgraded vs to the previous version.

Blazor extension : 16.0.19154.2
VS2019 : 16.1.0 Preview 1.0

TIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions