dotnet / dotnet/sdk

MapStaticAssets at runtime

Open
#52,081 1 comment 0 reactions 0 assignees View on GitHub
Area-AspNetCore
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.
MapStaticAssets is a great set of reasonable defaults and very attractive as a feature. However, should you wish to use the functionality at run-time to build a generic static file server, the logic is pretty well out of reach which is a shame as the functionality is the most reasonable defaults I've seen in a builder.

### Describe the solution you'd like
Refactor the MsBuildTargets to a set of SDK capabilities that can with be called at build time or at runtime via builder WebHost.

### Additional context
It may be useful to add API surface area for new content during a process, such as if a user added a new HTML page in a CMS use-case. This would ensure all content could be treated uniformly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.