Skip to content

Directive usage errors need to appear in runtime too #5084

Closed
@ajaybhargavb

Description

@ajaybhargavb

There are cases like aspnet/Razor#2539 (comment) when using directives as variables in cshtml results in a weird csharp error at runtime. Instead we should provide a Razor error like it does during design time.

cc @dougbu @NTaylorMullen

Metadata

Metadata

Assignees

Labels

area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-razor-pages

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions