API Reference
Invoke-ProjectBuild
Executes a repository-wide .NET build/release pipeline from a JSON configuration.
Remarks
The configuration file follows Schemas/project.build.schema.json in the PSPublishModule repository. Use it to define discovery rules, versioning, staging, NuGet publishing, and GitHub release settings. GitHub tag/release templates support tokens: {Project}, {Version}, {PrimaryProject}, {PrimaryVersion}, {Repo}, {Repository}, {Date}, {UtcDate}, {DateTime}, {UtcDateTime}, {Timestamp}, {UtcTimestamp}. When GitHub release mode is Single and multiple project versions are present, {Version} defaults to the local date (yyyy.MM.dd) unless a primary project version is available.
Examples
EXAMPLE 1
Invoke-ProjectBuild -ConfigPath 'C:\Path'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Invoke-ProjectBuild [-Build] -ConfigPath <String> [-Plan] [-PlanPath <String>] [-PublishGitHub] [-PublishNuget] [-UpdateVersions] [<CommonParameters>]
#
All Parameter SetsParameters
- Build SwitchParameter
- Run build/pack step.
- ConfigPath String
- Path to the JSON configuration file.
- Plan SwitchParameter
- Generate a plan only (no build/publish actions).
- PlanPath String
- Optional path to write the plan JSON file.
- PublishGitHub SwitchParameter
- Publish artifacts to GitHub.
- PublishNuget SwitchParameter
- Publish packages to NuGet.
- UpdateVersions SwitchParameter
- Run version update step.
Outputs
PowerForge.ProjectBuildResult