Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 1.78 KB

File metadata and controls

71 lines (52 loc) · 1.78 KB
external help file PSPublishModule-help.xml
Module Name PSPublishModule
online version https://github.com/EvotecIT/PSPublishModule
schema 2.0.0

Get-PowerShellAssemblyMetadata

SYNOPSIS

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

SYNTAX

__AllParameterSets

Get-PowerShellAssemblyMetadata -Path <string> [<CommonParameters>]

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

EXAMPLE 1

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

Returns discovered cmdlet and alias names based on PowerShell attributes.

EXAMPLE 2

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

Useful when validating what will be exported before publishing.

PARAMETERS

-Path

The assembly to inspect.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • System.Object

RELATED LINKS

  • None