C# terminal UI library (rich text, tables, charts, live dashboards, prompts, interactive apps, recording and export) with a PowerShell module built on it, plus logging/hosting extensions and the consolemonster.dev website.
ConsoleMonster/: the core library.ConsoleMonster.Graphics/,ConsoleMonster.Markdown/,ConsoleMonster.Hosting/andConsoleMonster.Extensions.Logging|NLog|Serilog/are add-on packages.ConsoleMonster.Generators/: source generator for the fluent API.ConsoleMonster.PowerShell/andConsoleMonster.PowerShell.Display/: the binary cmdlets.Module/: manifest, format data, build, Pester tests, examples and generated docs.ConsoleMonster.CLI/: command-line tool.- Tests:
ConsoleMonster.Tests/(engine, live sessions, concurrency),ConsoleMonster.Extensions.Tests/(logging, hosting, golden files underGolden/),ConsoleMonster.CLI.Tests/,Module/Tests/(Pester),Tests/AotSmoke/(Native AOT smoke).ConsoleMonster.TestHost/supports them. ConsoleMonster.Examples*/: C# showcases.ConsoleMonster.Benchmarks/.Templates/ConsoleMonster.Templates/:dotnet newtemplate.Website/: the consolemonster.dev site. ReadWebsite/AGENTS.mdbefore working there.Docs/: design, behaviour contract and usage documents.
dotnet build ConsoleMonster.sln -c Release
dotnet test ConsoleMonster.Tests/ConsoleMonster.Tests.csproj -c Release --no-build
dotnet test ConsoleMonster.Extensions.Tests/ConsoleMonster.Extensions.Tests.csproj -c Release --no-build
dotnet test ConsoleMonster.CLI.Tests/ConsoleMonster.CLI.Tests.csproj -c Release --no-build -f net8.0
Invoke-Pester -Path ./Module/Tests # after building ConsoleMonster.PowerShell
./Module/Build/Build-Module.ps1 -RunMode Build -SignModule $false -SkipInstall $true
./Build/Build-Project.ps1 -ConfigurationGateMode Build # NuGet packages only- Targets: libraries
netstandard2.0;net472;net8.0;net10.0; cmdletsnet472;net8.0; engine and extension testsnet472;net8.0;net10.0; CLInet8.0. SDK pinned inglobal.json(10.0.100). - Warnings are errors (
Directory.Build.props). Nullable is on, implicit usings are off. - Run ./.github/scripts/Initialize-PowerForgeLoader.ps1 in PowerShell 7 before importing development binaries from a fresh checkout. It copies the loader payload from the pinned PSPublishModule package.
- Run Pester in both Windows PowerShell 5.1 and PowerShell 7. CI pins Pester
6.1.0. The source module loads development binaries from
ConsoleMonster.PowerShell/bin. - Release only:
./Module/Build/Build-Module.ps1 -RunMode Publishsigns and publishes NuGet, PowerShell Gallery and GitHub in that order.
Module/Docs/*.mdandModule/en-US/ConsoleMonster-help.xmlcome from the cmdlet XML docs. Regenerate with./Module/Build/Build-Module.ps1 -RunMode Documentation.Module/ConsoleMonster.format.ps1xmlis generated from the widget types. After adding or renaming a widget, buildConsoleMonster.PowerShell(Debug) and runpwsh -NoProfile -File Module/Build/Update-ConsoleFormatData.ps1.- Website frames, replays, data and the README's code blocks and images come
from
Website/examples/throughWebsite/tools/SiteFrames(capture,render,readme). Never hand-edit them; seeWebsite/AGENTS.md. - The site's versions, counts and target frameworks come from the manifest, the
project files and the gallery (
Website/data/facts.json), and its release notes fromCHANGELOG.MD. The release build moves### Unreleasedinto the new version's section (Build/Update-Changelog.ps1);Website/build/Update-SiteCaptures.ps1regenerates every capture. - Golden files: set
CONSOLEMONSTER_UPDATE_GOLDEN=1to rewrite them after an intended change, then review the diff.
- C#: block-scoped namespaces, braces on the same line (
.editorconfig). - PowerShell and C# share one vocabulary. Follow
Docs/PowerShell-Conventions.mdfor verbs (Newbuilds,Showrenders,Readasks,Invokewaits,Startreturns a handle) andDocs/Behaviour-Contract.mdfor interaction rules. - PowerShell examples are UTF-8 with a BOM so Windows PowerShell 5.1 reads them.
- Website and README show only real ConsoleMonster output: no screenshots or hand-drawn frames.
- Trash tests use the real recycle bin only when
CONSOLEMONSTER_TEST_REAL_TRASH=1(set in CI); local runs skip them. - Rendering depends on the terminal profile. Pin
CONSOLEMONSTER_COLOR,CONSOLEMONSTER_GLYPHS,CONSOLEMONSTER_THEMEandCONSOLEMONSTER_CULTUREfor reproducible output. - The .NET 8 and .NET 10 targets are AOT compatible; reflection-based
inspection needs care when trimming (see
CONTRIBUTING.md).
Before adding or changing tests, read the shared test-audit authoring gate and contract-focused proof guidance. Resolve these paths under CODEX_HOME, defaulting to ~/.codex. For deliberate pruning, also read campaign mode.