Runic.Assets.AspNetCore 0.3.0-preview.1

This is a prerelease version of Runic.Assets.AspNetCore.
dotnet add package Runic.Assets.AspNetCore --version 0.3.0-preview.1
                    
NuGet\Install-Package Runic.Assets.AspNetCore -Version 0.3.0-preview.1
                    
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="Runic.Assets.AspNetCore" Version="0.3.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Runic.Assets.AspNetCore" Version="0.3.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Runic.Assets.AspNetCore" />
                    
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 Runic.Assets.AspNetCore --version 0.3.0-preview.1
                    
#r "nuget: Runic.Assets.AspNetCore, 0.3.0-preview.1"
                    
#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 Runic.Assets.AspNetCore@0.3.0-preview.1
                    
#: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=Runic.Assets.AspNetCore&version=0.3.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Runic.Assets.AspNetCore&version=0.3.0-preview.1&prerelease
                    
Install as a Cake Tool

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

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