Eigenverft.WebLib.StaticFiles 1.0.0.5-g3f72d1412c

This is a prerelease version of Eigenverft.WebLib.StaticFiles.
There is a newer prerelease version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Eigenverft.WebLib.StaticFiles" Version="1.0.0.5-g3f72d1412c" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Eigenverft.WebLib.StaticFiles" Version="1.0.0.5-g3f72d1412c" />
                    
Directory.Packages.props
<PackageReference Include="Eigenverft.WebLib.StaticFiles" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Eigenverft.WebLib.StaticFiles --version 1.0.0.5-g3f72d1412c
                    
#r "nuget: Eigenverft.WebLib.StaticFiles, 1.0.0.5-g3f72d1412c"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Eigenverft.WebLib.StaticFiles@1.0.0.5-g3f72d1412c
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Eigenverft.WebLib.StaticFiles&version=1.0.0.5-g3f72d1412c&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Eigenverft.WebLib.StaticFiles&version=1.0.0.5-g3f72d1412c&prerelease
                    
Install as a Cake Tool

Eigenverft.WebLib.StaticFiles

NuGet Version NuGet Downloads Repository CI Targets License

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.

📄 License

MIT; see the repository license.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.