AddFeatureFolders icon indicating copy to clipboard operation
AddFeatureFolders copied to clipboard

Add option to keep recognizing views at standard locations

Open mniak opened this issue 6 years ago • 2 comments

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.

mniak avatar Sep 04 '18 20:09 mniak

We'd love this feature as well.

james00harper avatar Mar 01 '19 11:03 james00harper

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"));

josephwoodward avatar Mar 12 '19 10:03 josephwoodward