BrighterTools.CodeGenerator
2.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global BrighterTools.CodeGenerator --version 2.0.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local BrighterTools.CodeGenerator --version 2.0.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BrighterTools.CodeGenerator&version=2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package BrighterTools.CodeGenerator --version 2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BrighterTools.CodeGenerator
BrighterTools.CodeGenerator is a shared .NET tool for BrighterTools-style application repos. It scaffolds and runs a repo-owned CodeGeneration workflow so generated code stays controlled by the consuming app, while the generator logic stays shared and versioned independently.
NuGet package:
What It Does
- Scaffolds a starter
CodeGenerationfolder with config and wrapper scripts. - Runs generation from a repo-owned
codegen.jsonfile. - Supports Windows, macOS, and Linux through PowerShell entrypoints, with Windows batch shims for convenience.
- Helps consuming repos verify generated output through cleanup, regeneration, and build steps.
- Uses deterministic generated file headers without per-run timestamps.
- Writes successful config-based generation runs to
CodeGeneration/generation-history.jsonl.
Install From NuGet
From the consuming repo root:
dotnet new tool-manifest
dotnet tool install BrighterTools.CodeGenerator
dotnet tool run brightertools-codegenerator -- init
pwsh ./CodeGeneration/GenerateCode.ps1
Commands
dotnet tool run brightertools-codegenerator -- initdotnet tool run brightertools-codegenerator -- generate --config CodeGeneration/codegen.jsondotnet tool run brightertools-codegenerator -- --config CodeGeneration/codegen.json
Cross-Platform Workflow
- Relative
--configpaths resolve from the current working directory. - Relative paths inside
codegen.jsonresolve from the folder containing that config file. - Consuming repos own their
CodeGenerationfolder, cleanup rules, verification rules, and wrapper scripts. - Windows
.batwrappers preferpwshand fall back to Windows PowerShell whenpwshis not installed. - Successful non-dry-run config-based generation writes a run-history entry beside
codegen.json.
More Documentation
- usage.md for consuming-repo setup, config, and workflow details
- publishing.md for packaging and NuGet publishing
- RELEASE_NOTES.md for release history
| Product | Versions 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.
This package has no dependencies.
v2.0.3 - Documentation refresh and publishing follow-up
Included:
- Refined the documentation to describe the current cross-platform workflow in present-state terms.
- Kept package, scaffold, and publishing metadata aligned for the next release.
Breaking changes:
- None.