Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 6 Tag Helpers Intellisense?

Is there supposed to be Intellisense for the new asp- tag helpers in Razor/MVC 6? I was following along on one of Shawn Wildermuth's courses on Pluralsight and everything functions properly, but I thought I should be getting intellisense when I start typing asp- as an attribute on a tag.

If it should be there do you have any ideas on what might cause it to disappear?

I'm using Visual Studio 2015 Community, and RC1-Final versions of the .Net dependencies for Kestrel, Mvc, and TagHelpers.

like image 404
Sam Avatar asked Dec 04 '15 22:12

Sam


1 Answers

Make sure you add "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final" to your project.json dependencies.

You also need to add @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers" to your _ViewImports.cshtml to make the tag helpers available in al your views.

You can get more information at aspnet 5 documentation page

like image 61
Lasse Vabe Rolstad Avatar answered Oct 15 '22 01:10

Lasse Vabe Rolstad