Skip to content

ASP.NET Core Extensions

Taritsyn edited this page Nov 9, 2021 · 1 revision

Configuration of ASP.NET Core extensions are made through special classes: WebMarkupMinOptions, HtmlMinificationOptions, XhtmlMinificationOptions, XmlMinificationOptions and HttpCompressionOptions.

WebMarkupMin options

WebMarkupMinOptions class in addition to properties, that inherited from WebMarkupMinConfigurationBase class, also has its own properties:

Property name Data type Default value Description
AllowMinification­InDevelopmentEnvironment Boolean false Flag for whether to allow markup minification if the current hosting environment name is Development.
AllowCompression­InDevelopmentEnvironment Boolean false Flag for whether to allow HTTP compression of content if the current hosting environment name is Development.
DefaultEncoding Encoding Encoding.Default Default encoding that will be used if the content encoding could not be determined for the current HTTP response.

Further specifics of configuration depends on version of used framework.