小编siw*_*m67的帖子

我可以在 ASP.NET Web 应用程序(.Net Framework)中使用 TagHelper 吗?

我可以在项目 ASP.NET Web 应用程序(.Net Framework)中使用 TagHelper 吗?

我使用 VS 2017 并参考 NuGet 包Microsoft.AspNetCore.Mvc.TagHelpers。在Views\_ViewStart.cshtml添加行中@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers,但我得到了Error CS0103 The name 'addTagHelper' does not exist in the current context。我使用的模板项目是MVC。

当我创建项目 ASP.NET Core Web 应用程序(.NET Framework)时,一切正常。

TagHelpers 是否仅限于核心项目?

razor asp.net-core asp.net-core-tag-helpers

6
推荐指数
1
解决办法
4624
查看次数