Share via


MvcRazorPagesMvcBuilderExtensions.WithRazorPagesRoot Method

Definition

Configures Razor Pages to use the specified rootDirectory.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesRoot (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, string rootDirectory);
static member WithRazorPagesRoot : Microsoft.Extensions.DependencyInjection.IMvcBuilder * string -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function WithRazorPagesRoot (builder As IMvcBuilder, rootDirectory As String) As IMvcBuilder

Parameters

rootDirectory
String

The application relative path to use as the root directory.

Returns

The IMvcBuilder.

Applies to