This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Consider unifying the list of assemblies included in the razor compilation with the of assembly parts of the application. #4498
Closed
Description
Right now application part manager is used for controller discovery, view component discovery and tag helper discovery (when doing AddTagHelpersAsServices()). However the assemblies included in the razor compilation are hard to configure. https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Razor/RazorViewEngineOptions.cs#L20
We could use application parts in order to define the list of assemblies to include as part of the compilation, this makes it easier to configure the list of assemblies that are part of the compilation (by just adding them to the list of application parts and having a feature that discovers them) and provides a single source of truth for configuring what assemblies are part of the application.