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

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Creates a configuration for importing PowerShell modules.

Remarks

Controls which modules are imported during a pipeline run (the module under build itself and/or its RequiredModules). This is primarily used by test and documentation steps that execute PowerShell code.

Examples

Authored help example

Import the module under build and its RequiredModules

PS>


New-ConfigurationImportModule -ImportSelf -ImportRequiredModules
        

Ensures the pipeline imports the module and required dependencies before running tests or generating docs.

Import only the module under build

PS>


New-ConfigurationImportModule -ImportSelf
        

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-ConfigurationImportModule [-ImportRequiredModules] [-ImportSelf] [-PreferBinaryConflictOrder] [-SkipBinaryConflictAnalysis] [-SkipBinaryDependencyCheck] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ImportRequiredModules SwitchParameter optionalposition: namedpipeline: False
Indicates whether to import required modules from the manifest.
ImportSelf SwitchParameter optionalposition: namedpipeline: False
Indicates whether to import the current module itself.
PreferBinaryConflictOrder SwitchParameter optionalposition: namedpipeline: False
Reorders RequiredModules using a conflict-aware heuristic before manifest refresh and import validation.
SkipBinaryConflictAnalysis SwitchParameter optionalposition: namedpipeline: False
Skips required-module and self-module binary conflict advisories during import validation.
SkipBinaryDependencyCheck SwitchParameter optionalposition: namedpipeline: False
Skips binary dependency preflight before importing the built module.

Outputs

System.Object