Skip to content

[WebToolsE2E][Blue]Add code “@addTagHelper *,Microsoft.AspNetCore.Mvc.TagsHelpers” in first line in Layout.cshtml file, there is a yellow wavy line below the first line of code and message "@addTagHelper directive is unnecessary." show up in Problems tab #2900

Description

@Susie-1989

REGRESSION INFO: Works well for C# Jan release 2.120.3

INSTALL STEPS

  1. OS: window x64
  2. Install SDK 10.0.201
  3. Install VS Code insiders - 1.113.0
  4. Install March prerelease (03/18)C# 2.131.79

REPRO STEPS

  1. Use below code to create razor project
    dotnet new razor --use-program-main -o razor333
  2. Use vs code to open this project and open Layout.cshtml file, type code “@addTagHelper *,Microsoft.AspNetCore.Mvc.TagsHelpers” in first line

ACTUAL There is a yellow wavy line below the first line of code, message "@addTagHelper directive is unnecessary." show up in Problems

Image

EXPECTED There is no a yellow wavy line below the first line of code, no message show up in Problems tab.

Image

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions