Project

PSPublishModule

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

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-17
Command

New-ConfigurationDotNetConfigBootstrapRule

Module PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishConfigBootstrapRule

Creates config bootstrap copy rules for DotNet publish service packages.

Syntax

New-ConfigurationDotNetConfigBootstrapRule -DestinationPath <String> [-OnMissingSource <Warn|Fail|Skip>] [-Overwrite] -SourcePath <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create config bootstrap rule

New-ConfigurationDotNetConfigBootstrapRule -SourcePath 'appsettings.example.json' -DestinationPath 'appsettings.json'

Parameters

-DestinationPath String required
Destination file path relative to output.
-OnMissingSource DotNetPublishPolicyMode optional
Policy when source file is missing.
Possible values: Warn, Fail, Skip
-Overwrite SwitchParameter optional
Allows overwriting existing destination file.
-SourcePath String required
Source file path relative to output.

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.