/TagHelperPack

A set of useful, and possibly opinionated, Tag Helpers for ASP.NET Core

Primary LanguageC#MIT LicenseMIT

TagHelperPack CI NuGet

A set of useful, and possibly opinionated, Tag Helpers for ASP.NET Core (all versions).

Included Tag Helpers & Examples

See the examples page at https://taghelperpack.net

Supports ASP.NET Core 6.0.x and 7.0.x. Also supports ASP.NET Core 2.1.x when running on .NET Framework 4.7.1 or higher.

Installing

  1. Add a reference to the package from the cmd line:

    MyGreatProject> dotnet add package TagHelperPack
  2. Restore:

    MyGreatProject> dotnet restore
  3. Register the Tag Helpers in your application's _ViewImports.cshtml file:

    @addTagHelper *, TagHelperPack
  4. Optional: Register optimizations in ConfigureServices() or Program.cs (ASP.NET Core 6+)

    services.AddTagHelperPack();