< Back

Get-NextNugetPackageVersion

Sun Jan 12, 2020 6:44 pm

NAME Get-NextNugetPackageVersion



SYNOPSIS

Get the next version for a nuget package, such as a module or script in the PowerShell Gallery





SYNTAX

Get-NextNugetPackageVersion [[-Name] <String[]>] [[-PackageSourceUrl] <String>] [<CommonParameters>]





DESCRIPTION

Get the next version for a nuget package, such as a module or script in the PowerShell Gallery



Uses the versioning scheme adopted by the user



Where possible, users should stick to semver: http://semver.org/ (Major.Minor.Patch, given restrictions .NET

Version class)



If no existing module is found, we return 0.0.1





PARAMETERS

-Name <String[]>

Name of the nuget package



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PackageSourceUrl <String>

Nuget PackageSourceUrl to query.

PSGallery Module URL: https://www.powershellgallery.com/api/v2/ (default)

PSGallery Script URL: https://www.powershellgallery.com/api/v ... /psscript/



Required? false

Position? 2

Default value https://www.powershellgallery.com/api/v2/

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NextNugetPackageVersion PSDeploy













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NextNugetPackageVersion Open-ISEFunction -PackageSourceUrl

https://www.powershellgallery.com/api/v ... /psscript/















RELATED LINKS

https://github.com/RamblingCookieMonster/BuildHelpers

about_BuildHelpers





Name : Set-BuildVariable

Category : Alias

Synopsis : Set-BuildVariable.ps1

Component :

Role :

Functionality :