BrighterTools.CodeGenerator
1.0.0
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 1.0.0
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 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package BrighterTools.CodeGenerator --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.configclears inherited package sources and restores fromnuget.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
.nupkgand.snupkgfiles are uploaded as workflow artifacts. - The
publish-toolworkflow is configured for Trusted Publishing with GitHub OIDC, not a stored NuGet API key.
Trusted Publishing Setup
- You must configure Trusted Publishing in
nuget.orgfor 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@v1to exchange the GitHub OIDC token for a short-lived NuGet API key during the publish job. - No long-lived
NUGET_API_KEYrepository secret is required for the GitHub publishing workflow once Trusted Publishing is configured.
Full setup and consuming-app guidance lives in usage.md.
| 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.
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.