RunicAssets 0.1.0-preview.24.1

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

RunicAssets

RunicAssets is a framework-neutral static-asset boundary. It has no dependency on hosting, CS-WebUI, HTMX, MVVM, a CSS system, or a browser framework.

  • EmbeddedAssetSource serves explicitly mapped assembly resources directly, which supports offline, single-file, trimmed, and Native-AOT applications.
  • DevelopmentDirectoryAssetSource provides refreshable local files with no-store caching for development only.
  • AssetArchive.ReadEmbedded loads a build-generated canonical archive without extracting files to disk and supports single-file and NativeAOT applications.
  • AssetManifest is immutable and ordinally ordered. Every entry carries its media type, byte length, SHA-256 digest, strong entity tag, and cache policy.
  • AssetPath rejects rooted, traversal, encoded, ambiguous, and control-character paths.

Embedded resources must be declared in the application project and registered explicitly:

var assets = new EmbeddedAssetSource(
    typeof(Program).Assembly,
    [
        new("index.html", "MyApp.Assets.index.html", IsEntryPoint: true),
        new("assets/app.css", "MyApp.Assets.app.css",
            CacheMode: AssetCacheMode.Immutable),
    ]);

For a complete Vite build, automatic packing avoids per-file registrations:

<PropertyGroup>
  <RunicAssetsDist>..\Client.Web\dist</RunicAssetsDist>
</PropertyGroup>
var assets = AssetArchive.ReadEmbedded(typeof(Program).Assembly);

The build target is incremental, uses index.html as the default entry point, and accepts RunicAssetsEntryPoint, RunicAssetsDistExclude, RunicAssetsEmbeddedArchive, and RunicAssetsEmbeddedResourceName overrides. The generated archive is the portable runic.assets.archive/1 format rather than a host-specific virtual-filesystem image.

The package deliberately does not define HTTP endpoints or a CS-WebUI adapter. Those layers translate IAssetSource into their own transport contracts.

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.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on RunicAssets:

Package Downloads
RunicAssets.AspNetCore

ASP.NET Core endpoint integration for Runic Assets.

RunicAssets.CsWebUi

Direct Runic Assets HTTP response integration for CS-WebUI.

RunicAssets.RunicToolkit

Runic Toolkit frontend asset provider integration owned and released by Runic Assets.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.24.1 72 8/11/2026