Skip to content

Add option to keep recognizing views at standard locations #32

Open

Description

@mniak

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.

Activity

  1. james00harper commented on Mar 1, 2019

    @james00harper

    We'd love this feature as well.

  2. josephwoodward commented on Mar 12, 2019

    @josephwoodward

    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"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions