Giraffe.Razor icon indicating copy to clipboard operation
Giraffe.Razor copied to clipboard

Setting viewsFolderPath has no effect

Open toburger opened this issue 4 years ago • 2 comments

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

toburger avatar Jul 08 '20 08:07 toburger