Installation
Our.Umbraco.TagHelpers is one NuGet package that works on Umbraco 16, 17, 18 and 19. Install it, register it in _ViewImports.cshtml, and every tag helper is ready to use in your views.
Install the package
Section titled “Install the package”From the folder with your Umbraco website’s .csproj, run:
cd MyUmbracoProjectdotnet add package Our.Umbraco.TagHelpersYou can also add it with the NuGet package manager in Visual Studio or Rider.
Register the tag helpers
Section titled “Register the tag helpers”Open Views/_ViewImports.cshtml and add this line at the bottom:
@addTagHelper *, Our.Umbraco.TagHelpersEvery view and partial in the site can now use the tag helpers. Try one:
<h1 our-text-if="@Model.Value("heading")" />Supported versions
Section titled “Supported versions”Version 2 of the package supports these Umbraco versions from the same package:
| Umbraco | .NET | Notes |
|---|---|---|
| 16 | .NET 9 | |
| 17 | .NET 10 | Long-term support (LTS) |
| 18 | .NET 10 | |
| 19 | .NET 11 | Release candidate |
Version 1.x of the package was built for earlier versions of Umbraco, starting with Umbraco 9.
Next steps
Section titled “Next steps”- Browse every tag helper.
- Set global options for
<our-svg>,<our-img>andour-self-hostinappsettings.json. - Moving from version 1? Read Upgrading to version 2.