Kornel
Kornel

Reputation: 61

is there any way to use TagHelpers in asp.net mvc 5?

Just wanted to utilize the new tag helpers in our 'legacy' asp.net mvc projects because they can help a lot for us I belive.

Installed Microsoft.AspNetCore.Mvc.TagHelpers nuget package but I'm stuck here since lacking of @addTagHelper feature so tag helpers not being processed runtime az all :(

Is it possible to set up solution/razor engine to use it somehow?

Upvotes: 6

Views: 6416

Answers (1)

ADyson
ADyson

Reputation: 62032

No, tag helpers are only supported in ASP.NET Core, not in the older ASP.NET (based on the classic .NET Framework, rather than the newer .NET Core).

But instead you can use HTML Helpers which do a lot of the same things.

Upvotes: 6

Related Questions