Eric
Eric

Reputation: 121

Areas' View Tag Helper Intellisense no use in Asp.Net Core VS2017

I am using asp.net core 's Areas feature in my project I use the newest vs2017. It's fine to use the tag helper Intellisense in the normal default 'Views' folder,But no Intellisense in the areas' view How to solve this issue?

Upvotes: 1

Views: 533

Answers (2)

Eric
Eric

Reputation: 121

just add this code at the top of the cshtml file:

@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

or copy the _ViewImports.cshtml file to the area's view folder

Upvotes: 2

Serge van den Oever
Serge van den Oever

Reputation: 4392

It now even works when adding it to _ViewImports.cshtml, so for example:

@using AmpTagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper AmpTagHelpers.*, AmpPwaApps @addTagHelper MaterialTagHelpers.*, AmpPwaApps

Upvotes: 0

Related Questions