Eigenverft.WebLib.StaticFiles
1.0.0.5-g3f72d1412c
See the version list below for details.
dotnet add package Eigenverft.WebLib.StaticFiles --version 1.0.0.5-g3f72d1412c
NuGet\Install-Package Eigenverft.WebLib.StaticFiles -Version 1.0.0.5-g3f72d1412c
<PackageReference Include="Eigenverft.WebLib.StaticFiles" Version="1.0.0.5-g3f72d1412c" />
<PackageVersion Include="Eigenverft.WebLib.StaticFiles" Version="1.0.0.5-g3f72d1412c" />
<PackageReference Include="Eigenverft.WebLib.StaticFiles" />
paket add Eigenverft.WebLib.StaticFiles --version 1.0.0.5-g3f72d1412c
#r "nuget: Eigenverft.WebLib.StaticFiles, 1.0.0.5-g3f72d1412c"
#:package Eigenverft.WebLib.StaticFiles@1.0.0.5-g3f72d1412c
#addin nuget:?package=Eigenverft.WebLib.StaticFiles&version=1.0.0.5-g3f72d1412c&prerelease
#tool nuget:?package=Eigenverft.WebLib.StaticFiles&version=1.0.0.5-g3f72d1412c&prerelease
Eigenverft.WebLib.StaticFiles
Add typed, package-provided MIME mappings to ASP.NET Core static-file defaults without replacing the framework's content-type provider.
✨ At a glance
| Capability | Details |
|---|---|
AdditionalMappings.WebApp |
Adds .br and .dat as application/octet-stream; .webmanifest and .wasm are already framework defaults. |
AdditionalMappings.Media |
Adds .avif as image/avif on net8.0; it is a no-op on net10.0. |
| Composition | AdditionalMappings.Combine(...) combines typed groups and rejects conflicting MIME values. |
📦 Installation
dotnet add package Eigenverft.WebLib.StaticFiles
🚀 Quick start
using Eigenverft.WebLib.StaticFiles;
WebApplication app = builder.Build();
app.UseStaticFiles(AdditionalMappings.WebApp);
Mapping behavior and composition
StaticFileAdditionalMappings is an opaque typed mapping group. The supplied extension retains the target framework's default MIME mappings and adds only extensions those defaults do not already define. Use the ordinary ASP.NET Core UseStaticFiles() overload when no additional group is needed.
AdditionalMappings.Combine(...) returns the union of its groups. Extension matching is case-insensitive; combining the same extension with different MIME values throws InvalidOperationException. On net8.0 AdditionalMappings.Media supplies .avif; on net10.0 ASP.NET Core already has that mapping, so the group is empty.
This package does not add a URL-mount or isolated-branch primitive. If an application needs an exclusive subtree, MapIsolated(...) is provided by Eigenverft.WebLib.Middleware.Primitives and can be used with this package's UseStaticFiles(...) extension.
🎯 Target frameworks
Targets net8.0 and net10.0; .NET 9 applications can consume the compatible net8.0 asset.
🔗 Project links
📄 License
MIT; see the repository license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0.5-g40a2f17cdc | 0 | 9/28/2026 |
| 1.0.0.5-g3f72d1412c | 0 | 9/29/2026 |
| 1.0.0.2-gbfce1c5596 | 0 | 9/28/2026 |
| 1.0.0.2-g8afd56e9dc | 0 | 9/12/2026 |
Initial capability package extracted from Eigenverft.WebLib.Infrastructure.
- ASP.NET Core static-file hosting helpers with additional mappings and content-type provider support.
- Public namespaces and behavior remain compatible with the original Infrastructure implementation.