# New-ConfigurationProjectTarget

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

Project

PSPublishModule

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

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**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>]
```

[#](#member-70e2b6f1c249d2fed1fd58c7)

Parameter set: `All Parameter Sets`

## Examples

### Example 1

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:4B207EC7C3C74CDD2414BC4D9D541307FAD45C10C139BFFAAE81426598522DF5 -->
