AngelSix.ContextMap 1.0.1

dotnet add package AngelSix.ContextMap --version 1.0.1
                    
NuGet\Install-Package AngelSix.ContextMap -Version 1.0.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="AngelSix.ContextMap" Version="1.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AngelSix.ContextMap" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="AngelSix.ContextMap">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 AngelSix.ContextMap --version 1.0.1
                    
#r "nuget: AngelSix.ContextMap, 1.0.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 AngelSix.ContextMap@1.0.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=AngelSix.ContextMap&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=AngelSix.ContextMap&version=1.0.1
                    
Install as a Cake Tool

AngelSix.ContextMap

On-build code context maps for .NET. Add the package to one project and every successful build refreshes a precomputed cheat sheet of your codebase, so cheaper or local AI models can navigate it without re-deriving the architecture.

What it does

After the project builds, it reads the already-built assemblies (no MSBuild workspace, so no project-load failures) and writes into AgentDocumentation/ContextMap/:

  • Structure.json — deterministic structural map: project graph, types, interface implementers, base types, and the public and internal member surface.
  • Digest.md — a compact, names-only summary for quick orientation.

Output is deterministic and sorted, so it only changes when your code structure actually changes (no diff churn). It is fast (a few hundred milliseconds), build-only, and non-fatal: a failure never breaks your build.

Install

Add it to the project at the top of your dependency graph (the app or host project), so it runs once, after its dependencies have built:

<PackageReference Include="AngelSix.ContextMap" Version="0.1.0" PrivateAssets="all" />

That is all. The package's MSBuild targets wire up the after-build step automatically.

Configure (optional)

Set any of these in the consuming project:

Property Default Meaning
ContextMapEnabled true Master switch.
ContextMapRunOnBuild true Run after each build (set false to only run on demand).
ContextMapAssemblyPrefix first dot-segment of the assembly name Which assemblies are "yours".
ContextMapScanRoot the folder above the project Where to find the built assemblies.
ContextMapOutputDirectory <git-root>/AgentDocumentation/ContextMap Where the map is written. Set this in a monorepo where the git root is not the project root.
ContextMapIncludeInternal true Include internal types and members.
ContextMapExcludePatterns *.Tests;*.Test Assembly-name globs to skip.

What it does not do

It does not build a call graph or write the intent layer (Subsystems.md); those are heavier, on-demand steps handled separately. This package is the fast, every-build structural layer only.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.0.1 36 6/7/2026
1.0.0 60 6/7/2026