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

Module PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishProfile

Creates a named profile for DotNet publish DSL.

Syntax

New-ConfigurationDotNetProfile [-Default] [-Frameworks <String[]>] -Name <String> [-Runtimes <String[]>] [-Style <DotNetPublishStyle>] [-Targets <String[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create release profile

New-ConfigurationDotNetProfile -Name 'release' -Default -Targets 'Service','Cli' -Runtimes 'win-x64','win-arm64'

Parameters

-Default SwitchParameter optional
Marks this profile as default.
-Frameworks String[] optional
Optional framework overrides.
-Name String required
Profile name.
-Runtimes String[] optional
Optional runtime overrides.
-Style DotNetPublishStyle optional
Optional style override.
Possible values: Portable, PortableCompat, PortableSize, SelfContained, FrameworkDependent, AotSpeed, AotSize
-Targets String[] optional
Optional target name filters.

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.