Skip to content

Get BuildVersion

gaelcolas edited this page Jul 18, 2024 · 1 revision

Get-BuildVersion

SYNOPSIS

Calculates or retrieves the version of the Repository.

SYNTAX

Get-BuildVersion [[-ModuleManifestPath] <String>] [[-ModuleVersion] <String>]
 [<CommonParameters>]

DESCRIPTION

Attempts to retrieve the version associated with the repository or the module within the repository. If the Version is not provided, the preferred way is to use GitVersion if available, but alternatively it will locate a module manifest in the source folder and read its version.

EXAMPLES

EXAMPLE 1

Get-BuildVersion -ModuleManifestPath source\MyModule.psd1

PARAMETERS

-ModuleManifestPath

Path to the Module Manifest that should determine the version if GitVersion is not available.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ModuleVersion

Provide the Version to be splitted and do not rely on GitVersion or the Module's manifest.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
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

System.String

NOTES

RELATED LINKS

Clone this wiki locally