I have a tag helper with multiple constructors in my ASP.NET Core application. This causes the following error at runtime when ASP.NET 5 tries to resolve the type:
ASP.NET Core 2.1 and higher
You can use ActivatorUtilitiesConstructorAttribute on the constructor which you want to be used in DI:
ActivatorUtilitiesConstructorAttribute
[ActivatorUtilitiesConstructor] public MyClass(ICustomDependency d) { }