# Invoke-ProjectBuild

Executes a repository-wide .NET build/release pipeline from a JSON configuration.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

**Outputs**

`PowerForge.ProjectBuildResult`

Executes a repository-wide .NET build/release pipeline from a JSON configuration.

## Syntax

```
Invoke-ProjectBuild
[-Build]
-ConfigPath <String>
[-Plan]
[-PlanPath <String>]
[-PublishGitHub]
[-PublishNuget]
[-UpdateVersions]
[<CommonParameters>]
```

[#](#method-invoke-projectbuild-switchparameter-string-switchparameter-string-switchparameter-switchparameter-switchparameter)

Parameter set: `All Parameter Sets`

## Description

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.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [PSPublishModule project overview](/projects/pspublishmodule/docs/overview/) Guide
  
  A project-level map for module builds, documentation generation, and release workflow automation.

## Examples

### Example 1

```powershell
Invoke-ProjectBuild -ConfigPath 'C:\Path'
```

## Parameters

**-Build SwitchParameter optional**

Run build/pack step.

**-ConfigPath String required**

Path to the JSON configuration file.

**-Plan SwitchParameter optional**

Generate a plan only (no build/publish actions).

**-PlanPath String optional**

Optional path to write the plan JSON file.

**-PublishGitHub SwitchParameter optional**

Publish artifacts to GitHub.

**-PublishNuget SwitchParameter optional**

Publish packages to NuGet.

**-UpdateVersions SwitchParameter optional**

Run version update step.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:69E3234D48254CCFF44E30626767E66AA27E0B9B3CDA5CDDAD3212885072AC1B -->
