Skip to main content
.NETFramework4.0net8.0.NETStandard2.0

The Content framework.

Published
Aug 22, 2026
1mo ago
Total Downloads
94.7K
94,679

Install

dotnet add package nkast.Xna.Framework.Content --version 4.3.9001
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0
Other
.NETFramework4.0

README

Xna.Framework.Content

Runtime asset loading and content management for KNI games.

Overview

The Xna.Framework.Content package provides the runtime content loading system for compiled game assets. It includes:

  • ContentManager: Asset loading and caching with RootDirectory support
  • Content Readers: Type-specific readers for deserializing compiled content
  • Title Container: Abstraction for game asset storage locations
  • ResourceContentManager: Load content from .resx resource files
  • Type Reader Support: Extensible reader system for custom types

Installation

dotnet add package nkast.Xna.Framework.Content

Quick Start

using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

// Initialize content manager (typically done in Game.LoadContent)
ContentManager contentManager = new ContentManager(serviceProvider, "Content");

// Load compiled assets
Texture2D texture = contentManager.Load<Texture2D>("Textures/player");
SpriteFont spriteFont = contentManager.Load<SpriteFont>("Fonts/arial");
Effect effect = contentManager.Load<Effect>("Effects/basic");

// Clean up all loaded content
contentManager.Dispose();

Notes

  • This package loads pre-compiled content created with the Content Pipeline tools
  • All assets must be built using Xna.Framework.Content.Pipeline before runtime

Changes from Previous Version

No structural changes between v4.2.9001 and v4.3.9001.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.