Command
New-ConfigurationDotNetStateRule
Creates a preserve/restore rule for DotNet publish state handling.
Syntax
New-ConfigurationDotNetStateRule [-DestinationPath <String>] [-Overwrite <Boolean>] -SourcePath <String> [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create state rule for appsettings
New-ConfigurationDotNetStateRule -SourcePath 'appsettings.json' -DestinationPath 'appsettings.json' -OverwriteParameters
- -DestinationPath String
- Destination path relative to publish output.
- -Overwrite Boolean
- Overwrite destination during restore.
- -SourcePath String
- Source path relative to publish 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.