| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Creates preserve/restore state options for DotNet publish targets.
New-ConfigurationDotNetState [-Enabled] [-StoragePath <string>] [-ClearStorage <bool>] [-OnMissingSource <DotNetPublishPolicyMode>] [-OnRestoreFailure <DotNetPublishPolicyMode>] [-Rules <DotNetPublishStateRule[]>] [<CommonParameters>]Creates preserve/restore state options for DotNet publish targets.
$rule = New-ConfigurationDotNetStateRule -SourcePath 'config.json' -Overwrite
New-ConfigurationDotNetState -Enabled -Rules $rule -StoragePath 'Artifacts/DotNetPublish/State/{target}/{rid}/{framework}/{style}'Clears storage before preserving state.
Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEnables state preservation.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePolicy for missing source paths.
Type: DotNetPublishPolicyMode
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Warn, Fail, Skip
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePolicy for restore failures.
Type: DotNetPublishPolicyMode
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Warn, Fail, Skip
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueState rules.
Type: DotNetPublishStateRule[]
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOptional storage path template.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
PowerForge.DotNetPublishStatePreservationOptions
- None