MVC 6标签助手的智能感知? [英] MVC 6 Tag Helpers Intellisense?
问题描述
时有应该是智能感知新 ASP -
标记佣工剃刀/ MVC 6?我对肖恩Wildermuth对Pluralsight的课程,一切功能正常酮按照沿,但我想我应该得到的智能感知,当我开始键入 ASP -
作为标签的属性
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?
我在使用Visual Studio 2015年的社区,和 RC1决赛的净依赖于红隼,MVC和TagHelpers的版本。
I'm using Visual Studio 2015 Community, and RC1-Final versions of the .Net dependencies for Kestrel, Mvc, and TagHelpers.
推荐答案
请确保您添加Microsoft.AspNet.Tooling.Razor:1.0.0-RC1决赛
您project.json依赖关系。
Make sure you add "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final"
to your project.json dependencies.
您还需要为 @addTagHelper*,Microsoft.AspNet.Mvc.TagHelpers
添加到您的_ViewImports.cshtml使在人提供的标签助手的意见。
You also need to add @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
to your _ViewImports.cshtml to make the tag helpers available in al your views.
您可以在 ASPNET 5文档页面
这篇关于MVC 6标签助手的智能感知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!