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

Adding semicolon after @inject statement results in IIS crashing and failed codegen. #1857

@NTaylorMullen

Description

@NTaylorMullen

Repro:

  1. Create a View.
  2. Add @inject IUrlHelper foo
  3. Start app in debug mode (f5)
  4. Add semicolon to end of @inject IUrlHelper foo => @inject IUrlHelper foo;, hit save.

Result: IIS terminates.

Expected Result: compilation error or ignore ';'.

*Note: * You can also see the impact of adding a semicolon to the end of the @inject when in the editor by the tons of error messages that appear due to the semicolon (essentially because code fails to generate).

/cc @ToddGrun

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions