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

Get-PowerShellAssemblyMetadata

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

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

Remarks

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

PS>


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

PS>


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

Useful when validating what will be exported before publishing.

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

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

Parameters

Path String requiredposition: namedpipeline: False
The assembly to inspect.

Outputs

System.Object