BrighterTools.CodeGenerator 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global BrighterTools.CodeGenerator --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local BrighterTools.CodeGenerator --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BrighterTools.CodeGenerator&version=1.0.0
                    
nuke :add-package BrighterTools.CodeGenerator --version 1.0.0
                    

BrighterTools.CodeGenerator

Code generation tooling for BrighterTools projects, packaged as a dotnet tool.

Projects

  • BrighterTools.CodeGenerator (console tool)
  • BrighterTools.CodeGenerator.Tests (xUnit tests)

Development

  • Build: dotnet build BrighterTools.CodeGenerator.slnx -c Release
  • Test: dotnet test BrighterTools.CodeGenerator.slnx -c Release
  • Pack locally: PackageToolForNuGet.bat

NuGet Sources

  • The repo-level NuGet.config clears inherited package sources and restores from nuget.org.
  • This avoids machine-specific feeds such as Telerik affecting restore and pack.

Tool Install

  • Create a manifest in the consuming repo: dotnet new tool-manifest
  • Install the tool: dotnet tool install BrighterTools.CodeGenerator
  • Run it with app-owned config: dotnet tool run brightertools-codegenerator -- --config CodeGeneration\codegen.json

CI Packaging

  • GitHub Actions validates restore, build, test, and pack on every push and pull request.
  • The packaged .nupkg and .snupkg files are uploaded as workflow artifacts.
  • The publish-tool workflow is configured for Trusted Publishing with GitHub OIDC, not a stored NuGet API key.

Trusted Publishing Setup

  • You must configure Trusted Publishing in nuget.org for this GitHub repository before the publish workflow can push packages.
  • The workflow already includes the GitHub OIDC permission it needs: id-token: write.
  • The workflow uses NuGet/login@v1 to exchange the GitHub OIDC token for a short-lived NuGet API key during the publish job.
  • No long-lived NUGET_API_KEY repository secret is required for the GitHub publishing workflow once Trusted Publishing is configured.

Full setup and consuming-app guidance lives in usage.md.

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.

This package has no dependencies.

Version Downloads Last Updated
2.0.4 110 7/15/2026
2.0.3 103 7/13/2026
2.0.0 105 7/13/2026
1.0.0 109 7/7/2026

v1.0.0 - Dotnet tool packaging

Included:
- Packaged BrighterTools.CodeGenerator as a dotnet tool.
- Added a stable tool command name for consuming application repos.
- Clarified consuming-app configuration and deployment guidance.

Breaking changes:
- None. Existing direct project execution remains supported.