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

New-ConfigurationModuleSkip

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Provides a way to ignore certain commands or modules during build process and continue module building on errors.

Remarks

Useful for optional dependencies where you want builds to succeed even if a tool module is not available (e.g. optional analyzers, formatters, helpers).

Examples

Authored help example

Ignore an optional module and continue on missing dependency

PS>


New-ConfigurationModuleSkip -IgnoreModuleName 'PSScriptAnalyzer' -Force
        

Prevents build failure when the module is not installed in the environment.

Ignore specific functions for cross-platform builds

PS>


New-ConfigurationModuleSkip -IgnoreModuleName 'Microsoft.PowerShell.Security' -IgnoreFunctionName 'Get-AuthenticodeSignature','Set-AuthenticodeSignature' -Force
        

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

New-ConfigurationModuleSkip [-FailOnMissingCommands] [-Force] [-IgnoreFunctionName <String[]>] [-IgnoreModuleName <String[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

FailOnMissingCommands SwitchParameter optionalposition: namedpipeline: False
Fail build when unresolved commands are detected during merge.
Force SwitchParameter optionalposition: namedpipeline: False
Force build process to continue even if the module or command is not available.
IgnoreFunctionName String[] optionalposition: namedpipeline: False
Ignore function name(s). If the function is not available it will be ignored.
IgnoreModuleName String[] optionalposition: namedpipeline: False
Ignore module name(s). If the module is not available it will be ignored.

Outputs

System.Object