PSScriptBuilder

1.2.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-PSScriptBuilderReleaseDataResult Get-PSScriptBuilderBumpConfiguration Get-PSScriptBuilderCollector Get-PSScriptBuilderCollectorContent Get-PSScriptBuilderComponentDependency Get-PSScriptBuilderConfiguration Get-PSScriptBuilderDependencyAnalysis Get-PSScriptBuilderReleaseData Get-PSScriptBuilderReleaseDataTokens Get-PSScriptBuilderTemplateAnalysis Invoke-PSScriptBuilderBuild New-PSScriptBuilderCollector New-PSScriptBuilderConfiguration New-PSScriptBuilderContentCollector New-PSScriptBuilderProject New-PSScriptBuilderReleaseData New-PSScriptBuilderTemplate Remove-PSScriptBuilderCollector 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.2.0

Added:
- Export-PSScriptBuilderBuildResult
- New-PSScriptBuilderTemplate
- Find-PSScriptBuilderUnusedComponent
- Watch-PSScriptBuilderProject (Build mode and Script mode)
- Example 15 (Watcher)

Changed:
- PSScriptBuilderAstEngine: ParseFile now returns PSScriptBuilderParseResult with AST and parse errors
- Collectors (Class, Enum, Function, Using): structural parse errors throw InvalidOperationException
- PSScriptBuilderConfigValidator: values are now type-validated against the schema
- Invoke-PSScriptBuilderBuild: consolidated cross-collector dependency warnings; encoding pre-flight check for PS 5.1 compatibility

Fixed:
- New-PSScriptBuilderProject: session guard removed from scaffolded build script
- PSScriptBuilderReleaseDataValidator: type names now rendered correctly in validation error messages

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

FileList

Version History

Version Downloads Last updated
1.2.0 (current version) 7 8/2/2026
1.1.0 54 5/5/2026
1.0.0 15 4/14/2026