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

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishServicePackageOptions

Creates service packaging options for DotNet publish targets.

Remarks

Creates service packaging options for DotNet publish targets.

Examples

Authored help example

Create service package options


$lifecycle = New-ConfigurationDotNetServiceLifecycle -Enabled
New-ConfigurationDotNetService -ServiceName 'My.Service' -GenerateInstallScript -GenerateUninstallScript -Lifecycle $lifecycle
        

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-ConfigurationDotNetService [-Arguments <String>] [-ConfigBootstrap <DotNetPublishConfigBootstrapRule[]>] [-Description <String>] [-DisplayName <String>] [-ExecutablePath <String>] [-GenerateInstallScript <Boolean>] [-GenerateRunOnceScript <Boolean>] [-GenerateUninstallScript <Boolean>] [-Lifecycle <DotNetPublishServiceLifecycleOptions>] [-Recovery <DotNetPublishServiceRecoveryOptions>] [-ServiceName <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Arguments String optionalposition: namedpipeline: False
Optional service arguments.
ConfigBootstrap DotNetPublishConfigBootstrapRule[] optionalposition: namedpipeline: False
Optional config bootstrap rules.
Description String optionalposition: namedpipeline: False
Description text.
DisplayName String optionalposition: namedpipeline: False
Display name.
ExecutablePath String optionalposition: namedpipeline: False
Executable path relative to output.
GenerateInstallScript Boolean optionalposition: namedpipeline: False
Generates Install-Service.ps1.
GenerateRunOnceScript Boolean optionalposition: namedpipeline: False
Generates Run-Once.ps1.
GenerateUninstallScript Boolean optionalposition: namedpipeline: False
Generates Uninstall-Service.ps1.
Lifecycle DotNetPublishServiceLifecycleOptions optionalposition: namedpipeline: False
Optional lifecycle settings.
Recovery DotNetPublishServiceRecoveryOptions optionalposition: namedpipeline: False
Optional recovery settings.
ServiceName String optionalposition: namedpipeline: False
Service name.

Outputs

PowerForge.DotNetPublishServicePackageOptions