Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

_ViewStart.cshtml not picked up when added to the root of the app #6440

Closed
wants to merge 1 commit into from

Conversation

pranavkm
Copy link
Contributor

Fixes #6308

@@ -210,8 +207,11 @@ private InnerCache CurrentCache
internal List<Func<IRazorPage>> GetViewStartFactories(CompiledPageActionDescriptor descriptor)
{
var viewStartFactories = new List<Func<IRazorPage>>();
// Always pick up all _ViewStarts, including the ones outside the Pages root. This mirrors the
// behavior of _ViewImports.cshtml discovery.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is consistent with views yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, there's another overload that does not take basePath (which is what we use in the view engine). I'll switch to it.

Copy link
Contributor

@NTaylorMullen NTaylorMullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have same question as ryan. Otherwise looks good.

@pranavkm pranavkm closed this Jun 23, 2017
@pranavkm pranavkm deleted the prkrishn/6428.1 branch June 23, 2017 15:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants