StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets 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.
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
- endpoints
- IEndpointRouteBuilder
- 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." />