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

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishServiceLifecycleOptions

Creates service lifecycle execution options for DotNet publish service targets.

Remarks

Creates service lifecycle execution options for DotNet publish service targets.

Examples

Authored help example

Create lifecycle options


New-ConfigurationDotNetServiceLifecycle -Enabled -Mode Step -StopIfExists -DeleteIfExists -Install -Start -Verify
        

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-ConfigurationDotNetServiceLifecycle [-DeleteIfExists <Boolean>] [-Enabled] [-Install <Boolean>] [-Mode <Step|InlineRebuild>] [-OnExecutionFailure <Warn|Fail|Skip>] [-OnUnsupportedPlatform <Warn|Fail|Skip>] [-Start <Boolean>] [-StopIfExists <Boolean>] [-StopTimeoutSeconds <Int32>] [-Verify <Boolean>] [-WhatIfMode] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

DeleteIfExists Boolean optionalposition: namedpipeline: False
Delete existing service before reinstall.
Enabled SwitchParameter optionalposition: namedpipeline: False
Enables lifecycle execution.
Install Boolean optionalposition: namedpipeline: False
Install or reinstall service.
Mode DotNetPublishServiceLifecycleMode optionalposition: namedpipeline: Falsevalues: 2
Lifecycle execution mode.
Possible values: Step, InlineRebuild
OnExecutionFailure DotNetPublishPolicyMode optionalposition: namedpipeline: Falsevalues: 3
Policy on lifecycle execution failures.
Possible values: Warn, Fail, Skip
OnUnsupportedPlatform DotNetPublishPolicyMode optionalposition: namedpipeline: Falsevalues: 3
Policy on non-Windows platforms.
Possible values: Warn, Fail, Skip
Start Boolean optionalposition: namedpipeline: False
Start service after install.
StopIfExists Boolean optionalposition: namedpipeline: False
Stop existing service before reinstall.
StopTimeoutSeconds Int32 optionalposition: namedpipeline: False
Stop timeout in seconds.
Verify Boolean optionalposition: namedpipeline: False
Verify service status after actions.
WhatIfMode SwitchParameter optionalposition: namedpipeline: False
Simulates lifecycle actions.

Outputs

PowerForge.DotNetPublishServiceLifecycleOptions