I followed a few guides on creating a custom tag helper for ASP Core.
This is my helper:
using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.Asp
Another thing to check if you're finding you can't set your content with calls like:
output.Content.AppendHtml(""); output.Content.SetHtmlContent("");
Is to check that you didn't use your tag helper as an empty/void element, e.g.:
To add content the tag helper must have a closing tag: