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