RazorRuntimeCompilationMvcCoreBuilderExtensions.AddRazorRuntimeCompilation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddRazorRuntimeCompilation(IMvcCoreBuilder) |
Configures IMvcCoreBuilder to support runtime compilation of Razor views and Razor Pages. |
AddRazorRuntimeCompilation(IMvcCoreBuilder, Action<MvcRazorRuntimeCompilationOptions>) |
Configures IMvcCoreBuilder to support runtime compilation of Razor views and Razor Pages. |
AddRazorRuntimeCompilation(IMvcCoreBuilder)
Configures IMvcCoreBuilder to support runtime compilation of Razor views and Razor Pages.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcCoreBuilder) As IMvcCoreBuilder
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
Returns
The IMvcCoreBuilder.
Applies to
AddRazorRuntimeCompilation(IMvcCoreBuilder, Action<MvcRazorRuntimeCompilationOptions>)
Configures IMvcCoreBuilder to support runtime compilation of Razor views and Razor Pages.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> setupAction);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcCoreBuilder, setupAction As Action(Of MvcRazorRuntimeCompilationOptions)) As IMvcCoreBuilder
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<MvcRazorRuntimeCompilationOptions>
An action to configure the MvcRazorRuntimeCompilationOptions.
Returns
The IMvcCoreBuilder.