PSScriptBuilder

1.5.0

Build a single deployable PowerShell script from a multi-file project. PSScriptBuilder resolves class inheritance and dependency order automatically using AST analysis - no manual ordering required. Supports classes, enums, functions, template-based output, and release management.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSScriptBuilder

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSScriptBuilder

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Tim Hartling. All rights reserved.

Package Details

Author(s)

  • Tim Hartling

Tags

PSScriptBuilder Build BuildTool Classes ClassDependency DependencyResolution TopologicalSort AST ReleaseManagement SemVer ModuleBuilder Deployment Automation PowerShell5 PowerShell7 Windows Linux MacOS

Functions

Add-PSScriptBuilderCollector Compress-PSScriptBuilderScript ConvertTo-PSScriptBuilderComponentDependencyTree Export-PSScriptBuilderBuildResult Export-PSScriptBuilderDependencyGraph Find-PSScriptBuilderUnusedComponent Format-PSScriptBuilderBuildResult Format-PSScriptBuilderBumpResult Format-PSScriptBuilderDependencyAnalysis Format-PSScriptBuilderReleaseDataResult Format-PSScriptBuilderSourceCoverage Format-PSScriptBuilderTemplateAnalysis Get-PSScriptBuilderBumpConfiguration Get-PSScriptBuilderCollector Get-PSScriptBuilderCollectorContent Get-PSScriptBuilderComponentDependency Get-PSScriptBuilderConfiguration Get-PSScriptBuilderDependencyAnalysis Get-PSScriptBuilderReleaseData Get-PSScriptBuilderReleaseDataTokens Get-PSScriptBuilderSourceCoverage Get-PSScriptBuilderTemplateAnalysis Invoke-PSScriptBuilderBuild New-PSScriptBuilderCollector New-PSScriptBuilderConfiguration New-PSScriptBuilderContentCollector New-PSScriptBuilderProject New-PSScriptBuilderReleaseData New-PSScriptBuilderTemplate Remove-PSScriptBuilderCollector Resolve-PSScriptBuilderSourceLocation Set-PSScriptBuilderProjectRoot Test-PSScriptBuilderBumpConfiguration Test-PSScriptBuilderReleaseData Test-PSScriptBuilderTemplate Update-PSScriptBuilderBumpFiles Update-PSScriptBuilderReleaseData Watch-PSScriptBuilderProject

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

v1.5.0

Added:
- Get-PSScriptBuilderConfiguration: ProjectRoot and ConfigFilePath properties; -Flat now also returns ProjectRoot, ConfigFilePath and ConfigFileName

Changed:
- New-PSScriptBuilderCollector / Add-PSScriptBuilderCollector: relative paths are resolved when the collector is created, no longer at every build; the collector holds the full paths
- New-PSScriptBuilderConfiguration: warns when it writes into the set project root from a location outside of it; the target does not change

Fixed:
- Release cmdlets / Get-PSScriptBuilderConfiguration: the configuration is read at every command; after a change to another project in the same session they no longer act on the first project
- Project root discovery: a root found by searching is no longer kept for the session; after a change of location, a build or New-PSScriptBuilderConfiguration -Force no longer acts on the previous project
- New-PSScriptBuilderProject: -Name is now checked; with -Force, a name such as '..' no longer replaces files outside of -Path, and a name that would break the generated build or release script is refused

Full changelog: https://github.com/PSScriptBuilder/PSScriptBuilder/blob/main/CHANGELOG.md

FileList

Version History

Version Downloads Last updated
1.5.0 (current version) 11 12/5/2026
1.4.0 24 11/27/2026
1.3.1 32 10/29/2026
1.3.0 15 10/27/2026
1.2.0 112 8/2/2026
1.1.0 58 5/5/2026
1.0.0 19 4/14/2026
Show more