Skip to content

Razor class libs #16

Description

@gregorybleiker

I noticed that if you are using razor class libs, the controllerActionDescriptor in FeatureViewLocationExpander will be null.
I added

if (controllerActionDescriptor == null)
{
                // make sure shared stuff is searched for under the "features" folder
                foreach (var location in viewLocations)
                {
                    yield return location.Replace("Pages", "Features");
                }
}

so that if a razor class lib would reference views/shared it still would be found. Let me know if you think this is a good idea, then I will make a pr.

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