Skip to content

Setting viewsFolderPath has no effect #17

@toburger

Description

@toburger

I want to set the Razor views path to something other than Views, but it seems that regardless of the path I am providing it always searches the default folders:

    let sp = services.BuildServiceProvider()
    let env = sp.GetService<IWebHostEnvironment>()
    let viewsFolderPath = env.WebRootPath
    services.AddRazorEngine(viewsFolderPath) |> ignore

The error message indicates that the newly registered views folder path wasn't registered:

image

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