AddFeatureFolders
AddFeatureFolders copied to clipboard
Add option to keep recognizing views at standard locations
Feature Request
It would be interesting to add an option that does not clear the ViewLocationFormats
collection.
Sometimes we need to recognize views in feature folders and in the default locations, like Views
and Shared
in the same project.
We'd love this feature as well.
Agreed, it would be nice to have this as an option. For the time being we solved it by adding the view locations back into Razor's configuration immediately afterwards.
services.AddFeatureFolders();
services.AddRazorOptions(o => o.ViewLocationFormats.Add("\\Views\\Shared\\{0}.cshtml"));