Skip to content

Setting viewsFolderPath has no effect #17

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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