New-PSSemVer¶
SYNOPSIS¶
Creates a new PSSemVer object.
SYNTAX¶
Values (Default)¶
New-PSSemVer [-Major <Int32>] [-Minor <Int32>] [-Patch <Int32>] [-Prerelease <String>]
[-BuildMetadata <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
String¶
New-PSSemVer [-Prerelease <String>] [-BuildMetadata <String>] -Version <String>
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION¶
This function creates a new PSSemVer object.
EXAMPLES¶
EXAMPLE 1¶
New-SemVer -Version '1.2.3-alpha.1+001'
Major : 1 Minor : 2 Patch : 3 Prerelease : alpha.1 BuildMetadata : 001
EXAMPLE 2¶
New-SemVer -Major 1 -Minor 2 -Patch 3 -Prerelease 'alpha.1' -BuildMetadata '001'
Major : 1 Minor : 2 Patch : 3 Prerelease : alpha.1 BuildMetadata : 001
PARAMETERS¶
-Major¶
The major version.
Type: Int32
Parameter Sets: Values
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Minor¶
The minor version.
Type: Int32
Parameter Sets: Values
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Patch¶
The patch version.
Type: Int32
Parameter Sets: Values
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Prerelease¶
The prerelease version.
Type: String
Parameter Sets: (All)
Aliases: PreReleaseLabel
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BuildMetadata¶
The build metadata.
Type: String
Parameter Sets: (All)
Aliases: Build, BuildLabel
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Version¶
The version as a string.
Type: String
Parameter Sets: String
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
PSSemVer¶
NOTES¶
Compatible with SemVer 2.0.0.