I am writing a helper class and _ViewImports into _ViewImports with
@inject HtmlHelperInject.TestHelper TestHelper
And register with Startup.ConfigureServices using
services.AddTransient<TestHelper>();
How can I get the ViewContext in this helper class? I tried to inject through the controller - it does not work, through the [ViewContext] attribute on the property - it does not work.
source share