Project

PSPublishModule

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

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-17
Command

Get-PowerShellAssemblyMetadata

Module PSPublishModule
Inputs
None

Gets the cmdlets and aliases in a .NET assembly by scanning for cmdlet-related attributes.

Syntax

Get-PowerShellAssemblyMetadata -Path <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This is typically used by module build tooling to determine which cmdlets and aliases should be exported for binary modules (compiled cmdlets).

The cmdlet delegates scanning to a typed PowerForge service so the metadata logic can be reused outside the PowerShell surface.

Examples

Authored help example

Inspect a compiled PowerShell module assembly

Get-PowerShellAssemblyMetadata -Path '.\bin\Release\net8.0\MyModule.dll'

Returns discovered cmdlet and alias names based on PowerShell attributes.

Inspect an assembly in a build artifact folder

Get-PowerShellAssemblyMetadata -Path 'C:\Artifacts\MyModule\Bin\MyModule.dll'

Useful when validating what will be exported before publishing.

Parameters

-Path String required
The assembly to inspect.

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.