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-ModuleInformation

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Gets module manifest information from a project directory.

Remarks

This is a lightweight helper used by build/publish commands. It finds the module manifest (*.psd1) under -Path and returns a structured object containing common fields such as module name, version, required modules, and the manifest path. Use it in build scripts to avoid re-implementing manifest discovery logic.

Examples

Authored help example

Read module information from a module folder

PS>


Get-ModuleInformation -Path 'C:\Git\MyModule\Module'
        

Returns the parsed manifest and convenience properties such as module name and version.

Use in a build script (relative to the script root)

PS>


$moduleInfo = Get-ModuleInformation -Path $PSScriptRoot; $moduleInfo.ManifestPath
        

Loads the manifest from the folder where the build script resides.

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-ModuleInformation -Path <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Path String requiredposition: namedpipeline: False
The path to the directory containing the module manifest file.

Outputs

System.Object