Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-17
Command

New-ConfigurationProjectTarget

Module PSPublishModule
Inputs
None
Outputs
PowerForge.ConfigurationProjectTarget

Creates a high-level target entry for a PowerShell-authored project build.

Syntax

New-ConfigurationProjectTarget [-ClearOutput <Boolean>] [-Framework <String>] [-Frameworks <String[]>] [-KeepDocs] [-KeepSymbols] [-Kind <Unknown|Cli|Desktop|Service|Library>] -Name <String> [-OutputPath <String>] [-OutputType <Tool|Portable>] -ProjectPath <String> [-ReadyToRun <Boolean>] [-Runtimes <String[]>] [-Style <DotNetPublishStyle>] [-Styles <DotNetPublishStyle[]>] [-UseStaging <Boolean>] [-Zip] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

EXAMPLE 1

New-ConfigurationProjectTarget -Name 'Name' -ProjectPath 'C:\Path'

Parameters

-ClearOutput Boolean optional
Clears the final output directory before copy.
-Framework String optional
Primary target framework.
-Frameworks String[] optional
Optional framework matrix values.
-KeepDocs SwitchParameter optional
Keeps documentation files.
-KeepSymbols SwitchParameter optional
Keeps symbol files.
-Kind DotNetPublishTargetKind optional
Optional target kind metadata.
Possible values: Unknown, Cli, Desktop, Service, Library
-Name String required
Friendly target name.
-OutputPath String optional
Optional output path template.
-OutputType ConfigurationProjectTargetOutputType[] optional
Requested output categories for this target. Defaults to Tool when omitted.
Possible values: Tool, Portable
-ProjectPath String required
Path to the project file to publish.
-ReadyToRun Boolean optional
Optional ReadyToRun override.
-Runtimes String[] optionalaliases: Runtime
Optional runtime matrix values.
-Style DotNetPublishStyle optional
Primary publish style.
Possible values: Portable, PortableCompat, PortableSize, SelfContained, FrameworkDependent, AotSpeed, AotSize
-Styles DotNetPublishStyle[] optional
Optional style matrix values.
Possible values: Portable, PortableCompat, PortableSize, SelfContained, FrameworkDependent, AotSpeed, AotSize
-UseStaging Boolean optional
Uses a temporary staging directory before final copy.
-Zip SwitchParameter optional
Creates a zip for the raw 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.