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

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishStateRule

Creates a preserve/restore rule for DotNet publish state handling.

Remarks

Creates a preserve/restore rule for DotNet publish state handling.

Examples

Authored help example

Create state rule for appsettings


New-ConfigurationDotNetStateRule -SourcePath 'appsettings.json' -DestinationPath 'appsettings.json' -Overwrite
        

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-ConfigurationDotNetStateRule [-DestinationPath <String>] [-Overwrite <Boolean>] -SourcePath <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

DestinationPath String optionalposition: namedpipeline: False
Destination path relative to publish output.
Overwrite Boolean optionalposition: namedpipeline: False
Overwrite destination during restore.
SourcePath String requiredposition: namedpipeline: False
Source path relative to publish output.

Outputs

PowerForge.DotNetPublishStateRule