RazorExtensionAssemblyNameAttribute Class

Definition

Specifies the name of a Razor extension as defined by the Razor SDK.

C#
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
public sealed class RazorExtensionAssemblyNameAttribute : Attribute
Inheritance
RazorExtensionAssemblyNameAttribute
Attributes

Remarks

This attribute is applied to an application's entry point assembly by the Razor SDK during the build, so that the Razor configuration can be loaded at runtime based on the settings provided by the project file.

Constructors

Properties

AssemblyName

Gets the assembly name of the extension.

ExtensionName

Gets the name of the extension.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0