Evotec

Project

PSPublishModule

PSPublishModule is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 43
Forks 13
Open issues 1
PowerShell Gallery downloads 13,876
Release v3.0.3
Language: C# Updated: 2026-04-14

API Reference

Cmdlet

Set-ProjectVersion

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.ProjectVersionUpdateResult

Updates version numbers across multiple project files.

Remarks

Updates version numbers in: C# projects (*.csproj)PowerShell module manifests (*.psd1)PowerShell build scripts that reference Invoke-ModuleBuild Use -VersionType to increment one component, or -NewVersion to set an explicit version.

Examples

Authored help example

Increment minor version across the repository

PS>


Set-ProjectVersion -VersionType Minor -WhatIf
        

Previews the version update for all discovered project files.

Set a specific version for one module

PS>


Set-ProjectVersion -NewVersion '2.1.0' -ModuleName 'MyModule' -Path 'C:\Projects'
        

Updates only files related to the selected module name.

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

Set-ProjectVersion [-ExcludeFolders <String[]>] [-ModuleName <String>] [-NewVersion <String>] [-PassThru] [-Path <String>] [-VersionType <Nullable`1>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeFolders String[] optionalposition: namedpipeline: False
Path fragments (or folder names) to exclude from the search (in addition to default 'obj' and 'bin'). This matches against the full path, case-insensitively.
ModuleName String optionalposition: namedpipeline: False
Optional module name to filter updates to specific projects/modules.
NewVersion String optionalposition: namedpipeline: False
Specific version number to set (format: x.x.x or x.x.x.x).
PassThru SwitchParameter optionalposition: namedpipeline: False
Returns per-file update results when specified.
Path String optionalposition: namedpipeline: False
The root path to search for project files. Defaults to current directory.
VersionType Nullable`1 optionalposition: namedpipeline: False
The type of version increment: Major, Minor, Build, or Revision.

Outputs

PowerForge.ProjectVersionUpdateResult