Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Razor class libs #16

Open
gregorybleiker opened this issue Aug 16, 2018 · 0 comments
Open

Razor class libs #16

gregorybleiker opened this issue Aug 16, 2018 · 0 comments

Comments

@gregorybleiker
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant