Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

increment version powershell

$manifest = Import-PowerShellDataFile .BeardAnalysis.psd1 
[version]$version = $Manifest.ModuleVersion
# Add one to the build of the version number
[version]$NewVersion = "{0}.{1}.{2}" -f $Version.Major, $Version.Minor, ($Version.Build + 1) 
# Update the manifest file
Update-ModuleManifest -Path .BeardAnalysis.psd1 -ModuleVersion $NewVersion
Source by sqldbawithabeard.com #
 
PREVIOUS NEXT
Tagged: #increment #version #powershell
ADD COMMENT
Topic
Name
1+3 =