Microsoft.AspNetCore.Mvc.Razor.Compilation Namespace

Provides types required to support compilation of Razor Pages and Razor Views.

Classes

CompilationFailedException

An Exception thrown when accessing the result of a failed compilation.

CompiledViewDescriptor

Represents a compiled Razor View or Page.

MetadataReferenceFeature

Specifies the list of MetadataReference used in Razor compilation.

MetadataReferenceFeatureProvider

An IApplicationFeatureProvider<TFeature> for MetadataReferenceFeature that uses DependencyContext for registered AssemblyPart instances to create MetadataReference.

RazorReferenceManager

Manages compilation references for Razor compilation.

RazorViewAttribute

This class is replaced by RazorCompiledItem and will not be used by the runtime.

RelativeFileInfo

A container type that represents IFileInfo along with the application base relative path for a file in the file system.

RoslynCompilationContext

Context object used to pass information about the current Razor page compilation.

ViewsFeature

A feature that contains view descriptors.

ViewsFeatureProvider

An IApplicationFeatureProvider<TFeature> for ViewsFeature.

Structs

CompilationResult

Represents the result of compilation.

Interfaces

ICompilationService

Provides methods for compilation of a Razor page.

IRazorCompilationService

Specifies the contracts for a service that compiles Razor files.

IViewCompilationMemoryCacheProvider

Provides an instance of IMemoryCache that is used to store compiled Razor views.

IViewCompiler

Represents a view compiler.

IViewCompilerProvider

Provides a IViewCompiler.

Remarks

For more information about MVC views, see Views in ASP.NET Core MVC.