Share via


StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets Method

Definition

Maps static files produced during the build as endpoints.

public static Microsoft.AspNetCore.StaticAssets.StaticAssetsEndpointConventionBuilder MapStaticAssets (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string? staticAssetsManifestPath = default);
static member MapStaticAssets : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.StaticAssets.StaticAssetsEndpointConventionBuilder
<Extension()>
Public Function MapStaticAssets (endpoints As IEndpointRouteBuilder, Optional staticAssetsManifestPath As String = Nothing) As StaticAssetsEndpointConventionBuilder

Parameters

staticAssetsManifestPath
String

The path to the static assets manifest file.

Returns

Remarks

The staticAssetsManifestPath can be null to use the ApplicationName to locate the manifes. As an alternative, a full path can be specified to the manifest file. If a relative path is used, we'll search for the file in the BaseDirectory." />

Applies to