Skip to content

Layout template does not use RazorViewFormatter siteRootPath #24

@mattbrailsford

Description

@mattbrailsford

If you set the siteRootPath on the RazoeViewFormatter, and you have a view with a layout set such as

@{
    Layout = "_layout.cshtml";
}

Then the layout doesn't get found as the template engine tries to look in the application directory, rather than the relative directory of where the rendering view is located.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions