API Reference
Cmdlet
New-ConfigurationDotNetStateRule
Creates a preserve/restore rule for DotNet publish state handling.
Remarks
Creates a preserve/restore rule for DotNet publish state handling.
Examples
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 SetsParameters
- DestinationPath String
- Destination path relative to publish output.
- Overwrite Boolean
- Overwrite destination during restore.
- SourcePath String
- Source path relative to publish output.
Outputs
PowerForge.DotNetPublishStateRule