MvcRazorPagesMvcCoreBuilderExtensions.WithRazorPagesRoot Method

Definition

Configures Razor Pages to use the specified rootDirectory.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder WithRazorPagesRoot (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, string rootDirectory);
Parameters
rootDirectory
String

The application relative path to use as the root directory.

Returns