【发布时间】:2017-03-24 20:14:27
【问题描述】:
我正在尝试使用 Visual Studio Code 在我的 Mac 上开发一个 Asp .Net Core MVC 应用程序。 大部分情况都正常,除了我无法让 Intellisense 在我的视图中为 Taghelpers 工作。 我看到其他人为 Visual Studio 发布了相同的问题,但没有为 Mac 上的 Visual Studio Code 发布相同的问题。我不确定这有多大的不同。总的来说,我是 Asp 新手。
我有
"Microsoft.AspNetCore.Razor.Tools": {
"type": "build",
"version": "1.0.0-preview2-final"
},
和
"tools": {
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final"
},
在 project.json 上。
我也有
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
关于 _ViewImports.cshtml
除了 Taghelpers,Intellisense 在视图上也能正常工作。
有什么建议吗?
【问题讨论】:
标签: asp.net razor asp.net-core intellisense tag-helpers