Runic.Assets.AspNetCore
0.3.0-preview.1
dotnet add package Runic.Assets.AspNetCore --version 0.3.0-preview.1
NuGet\Install-Package Runic.Assets.AspNetCore -Version 0.3.0-preview.1
<PackageReference Include="Runic.Assets.AspNetCore" Version="0.3.0-preview.1" />
<PackageVersion Include="Runic.Assets.AspNetCore" Version="0.3.0-preview.1" />
<PackageReference Include="Runic.Assets.AspNetCore" />
paket add Runic.Assets.AspNetCore --version 0.3.0-preview.1
#r "nuget: Runic.Assets.AspNetCore, 0.3.0-preview.1"
#:package Runic.Assets.AspNetCore@0.3.0-preview.1
#addin nuget:?package=Runic.Assets.AspNetCore&version=0.3.0-preview.1&prerelease
#tool nuget:?package=Runic.Assets.AspNetCore&version=0.3.0-preview.1&prerelease
Runic.Assets.AspNetCore
Serve a Runic Assets manifest through exact ASP.NET Core GET endpoints without recreating its media types, cache policy, content lengths, or entity tags.
Install
dotnet add package Runic.Assets.AspNetCore --prerelease
The package targets .NET 10, uses the shared Microsoft.AspNetCore.App
framework, and brings Runic.Assets with it. It is currently a preview package.
Choose this adapter for ASP.NET Core; choose the core package alone when you
only need an asset source or archive.
Map an embedded Vite build
After configuring RunicAssetsDist in the web application's project and
building the Vite dist directory, map the source in Program.cs:
using System.Reflection;
using Runic.Assets;
using Runic.Assets.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
AssetArchiveSource assets = AssetArchive.ReadEmbedded(
Assembly.GetExecutingAssembly());
app.MapRunicAssetSource(assets);
app.Run();
This maps the exact manifest paths, so the Vite entry point above is available
at /index.html. Add an optional prefix when assets should live below a route:
app.MapRunicAssetSource(assets, "ui");
HTTP behavior
Responses preserve the manifest-owned content type, length, cache-control
value, and strong ETag, and include X-Content-Type-Options: nosniff.
Matching If-None-Match values receive 304 Not Modified. Unknown or invalid
paths return 404; the adapter does not infer an SPA fallback or serve files
outside the manifest.
Documentation and support
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Runic.Assets (= 0.3.0-preview.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0-preview.1 | 38 | 9/11/2026 |
| 0.2.0-preview.1 | 51 | 9/9/2026 |