Command
New-ProjectReleaseConfig
Scaffolds a starter project release configuration file for PowerShell-authored project builds.
Syntax
New-ProjectReleaseConfig
[-Configuration <Release| Debug>]
[-Force]
[-Framework <String>]
[-Name <String>]
[-OutputPath <String>]
[-PassThru]
[-Portable]
[-ProjectPath <String>]
[-ProjectRoot <String>]
[-Runtimes <String[]>]
[-TargetName <String>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create a starter config in Build/project.release.json
New-ProjectReleaseConfig -ProjectRoot '.' -PassThruParameters
- -Configuration String
- Release configuration value written into the starter config.
- Possible values:
Release,Debug - -Force SwitchParameter
- Overwrite an existing config file.
- -Framework String
- Optional framework override.
- -Name String
- Optional release name override.
- -OutputPath String
- Output config path (default: Build\project.release.json).
- -PassThru SwitchParameter
- Returns detailed scaffold metadata instead of only the config path.
- -Portable SwitchParameter
- Configure the starter file to request a portable bundle by default.
- -ProjectPath String
- Optional path to a specific project file.
- -ProjectRoot String
- Project root used to resolve relative paths.
- -Runtimes String[]
- Optional runtime identifiers override.
- -TargetName String
- Optional target name override.
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.