ASP.NET Core Tag Helper Intellisense in Visual Studio 2017

后端 未结 4 812
逝去的感伤
逝去的感伤 2021-01-04 02:36

I am unable to get Intellisense for all tags (e.g. asp-for asp-action, etc.) I\'m running Visual Studio 2017.

My .csproj file

4条回答
  •  情话喂你
    2021-01-04 03:04

    You can add/use the tag helpers by doing the following process:

    1. Create View with the name of _ViewImports.cshtml
    2. Add the following line into it, @addTagHelper "*,Microsoft.AspNetCore.Mvc.TagHelpers"
    3. Done

    Go check _Layout.cshtml, it will be working fine.

提交回复
热议问题