# New-ConfigurationInformation

Describes what to include/exclude in the module build and how libraries are organized.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

Describes what to include/exclude in the module build and how libraries are organized.

## Syntax

```
New-ConfigurationInformation
[-AliasesToExportFolder <String>]
[-ExcludeFromPackage <String[]>]
[-FunctionsToExportFolder <String>]
[-IncludeAll <String[]>]
[-IncludeCustomCode <ScriptBlock>]
[-IncludePS1 <String[]>]
[-IncludeRoot <String[]>]
[-IncludeToArray <IncludeToArrayEntry[]>]
[-LibrariesCore <String>]
[-LibrariesDefault <String>]
[-LibrariesStandard <String>]
[<CommonParameters>]
```

[#](#method-new-configurationinformation-string-string-string-string-scriptblock-string-string-includetoarrayentry-string-string-string)

Parameter set: `All Parameter Sets`

## Description

This configuration segment controls:

## Examples

### Customize include/exclude rules for packaging

```powershell
New-ConfigurationInformation -ExcludeFromPackage 'Ignore','Examples','Docs' -IncludeRoot '*.psd1','*.psm1','LICENSE' -IncludeAll 'Bin','Lib','en-US'
```

Controls what ends up in packaged artefacts while keeping staging lean.

### Add custom files during staging

```powershell
New-ConfigurationInformation -IncludeCustomCode { Copy-Item -Path '.\Extras\*' -Destination $StagingPath -Recurse -Force }
```

Injects additional content into the staging folder before packaging.

## Parameters

**-AliasesToExportFolder String optional**

Folder name containing public aliases to export (e.g., 'Public').

**-ExcludeFromPackage String[] optional**

Paths or patterns to exclude from artefacts (e.g., 'Ignore','Docs','Examples').

**-FunctionsToExportFolder String optional**

Folder name containing public functions to export (e.g., 'Public').

**-IncludeAll String[] optional**

Folder names to include entirely.

**-IncludeCustomCode ScriptBlock optional**

Scriptblock executed during staging to add custom files/folders.

**-IncludePS1 String[] optional**

Folder names where PS1 files should be included.

**-IncludeRoot String[] optional**

File patterns from the root to include (e.g., '*.psm1','*.psd1','License*').

**-IncludeToArray IncludeToArrayEntry[] optional**

Advanced include rules. Accepts legacy hashtable (Key=>Values) or IncludeToArrayEntry[].

**-LibrariesCore String optional**

Relative path to libraries compiled for Core (default 'Lib/Core').

**-LibrariesDefault String optional**

Relative path to libraries for classic .NET (default 'Lib/Default').

**-LibrariesStandard String optional**

Relative path to libraries for .NET Standard (default 'Lib/Standard').

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:D5073C6279FBAB036830D0FAE9D15A0A6B030BDF16F764B5A4153FC6378F3BA3 -->
