Fix tag helper discovery in our tool

This commit is contained in:
Ryan Nowak 2018-01-02 16:55:33 -08:00
parent 6fc028afb0
commit d49d432898
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ namespace Microsoft.AspNetCore.Razor.TagHelperTool
b.Features.Add(new DefaultMetadataReferenceFeature() { References = metadataReferences });
b.Features.Add(new CompilationTagHelperFeature());
// TagHelperDescriptorProviders (actually do tag helper discovery)
b.Features.Add(new Microsoft.CodeAnalysis.Razor.DefaultTagHelperDescriptorProvider());
b.Features.Add(new ViewComponentTagHelperDescriptorProvider());
});
var feature = engine.Features.OfType<ITagHelperFeature>().Single();