Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Compilation error within tag attribute shows generated code instead of markup #569

@Eilon

Description

@Eilon

Create this Razor page (nothing else in the app really matters):

<a href="@doesNotExist">Hi!</a>

You get this error:

An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.

Generated Code

The name 'doesNotExist123' does not exist in the current context

84.            Tuple.Create(Tuple.Create("", 11), Tuple.Create<System.Object, System.Int32>(doesNotExist123, 11), false));

Note that the error shows the generated code instead of the Razor markup.

This is using Razor 4.0.0-beta8-15751 (should be the newest beta8 release build).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions